fuser command to find out processes that hold references to the filesystem.
To find out which processes hold references to the filesystem, use fuser -cv option to print out processes with their commands.
$ fuser -cv /usr
| USER PID ACCESS COMMAND | |
| /usr | root 283 ….m atd root 839 ….m sshd etc |
| Codes | Meaning |
| f,o | The process has a file open for reading or writing |
| c | The process’s current directory is on the filesystem |
| e,t | The process is currently executing a file. |
| r | The process’s root directory(set with chroot) is on the filesystem. |
| m,s | The process has mapped a file or shared library. |
Advertisement
leave a comment