CompTIA Linux+ (XK0-004) — Question 172

An administrator receives a warning about a filesystem filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the filesystem.
Which of the following commands would BEST assists the administrator in identifying the problem?

Answer options

Correct answer: A

Explanation

The command 'lsof | grep largelogfile' is effective because it lists open files and helps determine if the deleted file is still held by a process, preventing space recovery. The other options do not provide the necessary information; 'pkill' and 'pgrep' deal with processes but do not check for open file handles, while 'ps -ef' only shows running processes without linking them to file usage.