nerdexam
CompTIACompTIA

XK0-005 · Question #873

XK0-005 Question #873: Real Exam Question with Answer & Explanation

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).

System Management

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

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

#Disk Usage#Linux Commands#File System Management#du command

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions