CompTIACompTIA
XK0-005 · Question #893
XK0-005 Question #893: Real Exam Question with Answer & Explanation
The correct answer is B: du /home/CFO. The du (disk usage) command reports file and directory sizes. When used with sorting and filtering (e.g., du -ah /home/CFO | sort -rh | head -n 1), it helps identify the largest file in the specified directory.
System Management
Question
A systems administrator needs to determine the largest file in a given directory. Which of the following commands should the administrator use? df /home/CFO A.
Options
- Bdu /home/CFO
- Cstat /home/CFO
Explanation
The du (disk usage) command reports file and directory sizes. When used with sorting and filtering (e.g., du -ah /home/CFO | sort -rh | head -n 1), it helps identify the largest file in the specified directory.
Topics
#Disk Usage#File System Management#Linux Commands#System Administration
Community Discussion
No community discussion yet for this question.