XK0-005 · Question #1
A Linux administrator must identify a user with high disk usage. The administrator runs the # du - s /home/* command and gets the following output: Based on the output, User3 has the largest amount…
The correct answer is B. du -a /home/User3/*. The command 'du -a /home/User3/*' is correct because the '-a' flag tells 'du' (disk usage) to report the size of all files and directories recursively under User3's home directory, not just subdirectory totals. This gives the administrator the granular file-level detail needed…
Question
A Linux administrator must identify a user with high disk usage. The administrator runs the # du – s /home/* command and gets the following output:
Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space. Which of the following commands will accomplish this task?
Options
- Adf -k /home/User/files.txt
- Bdu -a /home/User3/*
- Cdu -sh /home/User/
- Dfind . -name /home/User3 -print
How the community answered
(41 responses)- A10% (4)
- B83% (34)
- C2% (1)
- D5% (2)
Explanation
The command 'du -a /home/User3/*' is correct because the '-a' flag tells 'du' (disk usage) to report the size of all files and directories recursively under User3's home directory, not just subdirectory totals. This gives the administrator the granular file-level detail needed to identify exactly which files are consuming the most space. Option A uses 'df' which reports filesystem-level disk space, not individual file sizes, and references the wrong user. Option C uses 'du -sh' which only shows a summary total for User's directory (also wrong user), not individual files. Option D uses 'find' with '-print' which only lists file paths but shows no size information.
Topics
Community Discussion
No community discussion yet for this question.