XK0-005 · Question #50
XK0-005 Question #50: Real Exam Question with Answer & Explanation
The correct answer is A: lsof | grep largelogfile. {"question_number": 2, "question": "An administrator deletes a large file but no space is recovered. Which command BEST identifies the problem?", "correct_answer": "A. lsof | grep largelogfile", "explanation": "In Linux, when a file is deleted (unlinked), the disk space is not fr
Question
An administrator receives a warning about a file system filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the file system. Which of the following commands would BEST assists the administrator in identifying the problem?
Options
- Alsof | grep largelogfile
- Bpkill /tmp/largelogfile
- Cpgrep largelogfile
- Dps -ef | grep largelogfile
Explanation
{"question_number": 2, "question": "An administrator deletes a large file but no space is recovered. Which command BEST identifies the problem?", "correct_answer": "A. lsof | grep largelogfile", "explanation": "In Linux, when a file is deleted (unlinked), the disk space is not freed until all processes that have the file open close their file descriptors. 'lsof' (List Open Files) shows all files currently held open by running processes. Piping it through 'grep largelogfile' reveals which process(es) still hold an open handle to the deleted file. Once identified, that process can be restarted or killed to release the file descriptor and reclaim the disk space. The other options ('pkill', 'pgrep', 'ps') do not reveal open file handles.", "generated_by": "claude-sonnet", "llm_judge_score": 3}
Topics
Community Discussion
No community discussion yet for this question.