CompTIA
XK0-004 · Question #242
XK0-004 Question #242: Real Exam Question with Answer & Explanation
The correct answer is B: lsof -nP | grep deleted. Common Reasons for "No Space Left on Device" 1.Deleted File Reserved by Process 2. Not Enough Inodes Try to locate the process. sudo lsof / | grep deleted The problematic process should be listed. Just restart it. sudo systemctl restart service_name If it’s not immediately eviden
Question
A Linux administrator tried to copy files to a remote server but received an error message indicating a lack of free space on the disk. The administrator issued a df command and verified adequate free space and inodes on the filesystem. Which of the following commands is the BEST way to diagnose the issue?
Options
- Acat /proc/meminfo
- Blsof -nP | grep deleted
- Cfind / -type f -size +50M
- Ddu -a / | sort -n -r | head -n 30
Explanation
Common Reasons for "No Space Left on Device" 1.Deleted File Reserved by Process 2. Not Enough Inodes Try to locate the process. sudo lsof / | grep deleted The problematic process should be listed. Just restart it. sudo systemctl restart service_name If it’s not immediately evident, do a full daemon reload. sudo systemctl daemon-reload
Community Discussion
No community discussion yet for this question.