XK0-004 · Question #228
XK0-004 Question #228: Real Exam Question with Answer & Explanation
The correct answer is A: Use the lsof command to find where the large log file is located and truncate it. "df" shows space, but the storage is in fact ran out of space. This is usually due to a file that was deleted but a process is still has the file opened an it will not release the space until the process is killed or restarted. The first step to fix this issue is to find the proc
Question
Options
- AUse the lsof command to find where the large log file is located and truncate it
- BUse the locate command to find where the large log file is located and delete it
- CUse the du command to find where the large log file is located and delete it
- DUse the ps command to find which process is writing to the log file, and then kill and restart the
Explanation
"df" shows space, but the storage is in fact ran out of space. This is usually due to a file that was deleted but a process is still has the file opened an it will not release the space until the process is killed or restarted. The first step to fix this issue is to find the process that is opening deleted files and "lsof" is the best tool to find that.
Community Discussion
No community discussion yet for this question.