XK0-005 · Question #873
A systems administrator is analyzing the data usage on a Linux system. Which of the following commands will display a list of the entire /var contents along with sizes?
The correct answer is C. du -ah /var/. The du (disk usage) command is used to display the size of files and directories. du -a /var/ - Lists all files and directories under /var along with their sizes. du -ah /var/ - The -h option makes the sizes human-readable (e.g., KB, MB, GB).
Question
A systems administrator is analyzing the data usage on a Linux system. Which of the following commands will display a list of the entire /var contents along with sizes?
Options
- Als -ltr /var | sort -n
- Bdf -h /var
- Cdu -ah /var/
- Dlsblk /var
How the community answered
(23 responses)- A4% (1)
- C91% (21)
- D4% (1)
Explanation
The du (disk usage) command is used to display the size of files and directories. du -a /var/ - Lists all files and directories under /var along with their sizes. du -ah /var/ - The -h option makes the sizes human-readable (e.g., KB, MB, GB).
Topics
Community Discussion
No community discussion yet for this question.