fuser
Fuser is a command-line utility found on many Unix-like systems that identifies which processes are using a given file, file system, or network endpoint. It reports the process IDs (PIDs) of processes that have the resource open and can display additional information such as the owning user and the command name when used with verbose options. Fuser determines usage by inspecting a system’s process table and open file descriptors.
Common uses include determining which processes must be stopped before unmounting a filesystem, deleting or modifying
Typical usage examples are simple: fuser /path/to/file or fuser /mount/point. Adding the verbose option (for example,
Fuser is commonly provided by the psmisc package on Linux distributions and is available on other Unix-like