Dealing with files that are currently opened in a program

Use this tag for questions about open file descriptors: listing them, reacting to events, etc.

For questions about selecting which program will be used when opening a file, see .

Useful tools

  • fuser: list the processes that have a given file open
  • lsof: list open files of processes
  • /proc: on many Unix variants, contains a directory for each process
history | excerpt history