nerdexam
CompTIA

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

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

How the community answered

(23 responses)
  • A
    4% (1)
  • C
    91% (21)
  • D
    4% (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

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

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice