Troubleshooting
The root filesystem on a server shows 100% used in df -h, yet du -sx / totals only a small fraction of that size. A large log file was deleted earlier to free space, but no space was recovered, and a running daemon may still be writing to that log. Which command BEST identifies the process holding the space?
Show the answer
Correct answerA. lsof +L1 to list open files with a link count of zero
A deleted file stays allocated until every process holding it open closes it, and lsof +L1 lists such files with their owning processes. Restarting that process frees the space. df -i reports inode usage, which does not explain the gap between df and du.