nerdexam
CompTIA

XK0-005 · Question #893

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.

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

How the community answered

(60 responses)
  • B
    90% (54)
  • C
    10% (6)

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.

Full XK0-005 Practice