lsof
A command that lists open files and the processes holding them, including deleted files still taking space.
In more detail
lsof +L1 shows open files with no name left, the usual reason df reports space that du cannot find. lsof -i :443 shows which process has a port open.
Related terms
- df — The command that reports total, used and free space for each mounted filesystem.
Taught in
- No Space Left, Says The Disk With Room To Spare: Inodes, Held Files, Corruption And Repair — CompTIA Linux+ (XK0-006) Exam Prep
- Disk Full At Three In The Morning — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Drill: From Emergency Mode To A Clean Boot — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- File System Integrity: Measure, Check, Repair — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep