Find the processes that lock files, mounts or network ports and decide what to do next. 12.06.2026 | reading time: 3 min When an unmount fails or a file cannot be removed, who holds it? Use `fuser` to answer that question quickly by listing PIDs that access a file, a mount point or a network port, so he can inspect or stop them and continue work. A stuck mount and a mysterious lock Imagine a backup mount that refuses to unmount; first list who uses it, then stop them; example session shown below demonstrates discovery and a safe kill: ```bash $ fuser -m /mnt/backup /mnt/backup: 2456c 3128c $ sudo fuser -v -m /mnt/backup USER PID ACCESS COMMAND /mnt/backup alice 2456 C..r bash /mnt/backup svc 3128 F... rsync $ sudo fuser -k -TERM -m /mnt/backup /mnt/backup: 2456c 3128c ``` The first command lists PIDs, the verbose form shows users and access type, and `-k` with a signal tells `fuser` to terminate those processes so the mount can be released. Flags that change the game Some options deserve memorization: use `-m` for mounts or whole filesystems, `-n` to name a namespace such as tcp (example: `fuser -n tcp 80` to check who binds port 80), `-v` for verbose output, `-k` to kill processes, `-i` to confirm interactively and `-u` to show owning user; short commands, big impact when troubleshooting busy files or sockets. When fuser meets limits `fuser` is fast but not always sufficient: it may need root to reveal other users' PIDs and can show only kernel-visible handles, so complement it with tools that inspect open-file tables or sockets and avoid blind `-k` calls because killing services can corrupt data or disrupt users. Complementary utilities to try next `lsof` lists open files with more detail, `ss` inspects sockets and ports, and `ps` helps map PIDs to full process trees and commands for controlled shutdowns. Finish and forward Keep `fuser` in the troubleshooting toolbox: find the holder, evaluate the risk and act with intent; mastering this pattern saves time and prevents accidental outages — explore deeper and consider formal certification like CompTIA Linux+ or LPIC-1, and intensive exam preparation at bitsandbytes.academy for focused study. Join Bits & Bytes Academy First class LINUX exam preparation. processes filesystem troubleshooting utilities scripting