fuser
Display process IDs currently using files or sockets. More information: https://manned.org/fuser.
- Find which processes are accessing a file or directory:
fuser {{path/to/file_or_directory}} - Show more fields (
USER,PID,ACCESSandCOMMAND):fuser --verbose {{path/to/file_or_directory}} - Identify processes using a TCP socket:
fuser --namespace tcp {{port}} - Kill all processes accessing a file or directory (sends the
SIGKILLsignal):fuser --kill {{path/to/file_or_directory}} - Find which processes are accessing the filesystem containing a specific file or directory:
fuser --mount {{path/to/file_or_directory}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.