Options (3)
-v, --verbosebooleanShow more fields (`USER`, `PID`, `ACCESS`, and `COMMAND`)
Example:
fuser {{[-v|--verbose]}} {{path/to/file_or_directory}}-k, --killbooleanKill all processes accessing a file or directory (sends the `SIGKILL` signal)
Example:
fuser {{[-k|--kill]}} {{path/to/file_or_directory}}-m, --mountbooleanFind which processes are accessing the filesystem containing a specific file or directory
Example:
fuser {{[-m|--mount]}} {{path/to/file_or_directory}}Examples (6)
Find which processes are accessing a file or directory
fuser path/to/file_or_directoryShow more fields (`USER`, `PID`, `ACCESS`, and `COMMAND`)
fuser [-v|--verbose] path/to/file_or_directoryIdentify processes using a TCP socket
fuser port/tcpKill all processes accessing a file or directory (sends the `SIGKILL` signal)
fuser [-k|--kill] path/to/file_or_directoryFind which processes are accessing the filesystem containing a specific file or directory
fuser [-m|--mount] path/to/file_or_directoryKill all processes with a TCP connection on a specific port
fuser [-k|--kill] port/tcpmade by @shridhargupta | data from tldr-pages