Services and User Management
An administrator deleted a 20 GB log file that a running daemon still has open. df still shows the space as used. Which command lists open files that have been deleted (link count below one)?
Show the answer
Correct answerC. lsof +L1
lsof +L1 lists open files with a link count under one, meaning deleted files still held open by a process. lsof +D /var/log is tempting, but a deleted file no longer has a path in that directory, so it is not listed.