nerdexam
CompTIA

XK0-004 · 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/*. -a, --all write counts for all files, not just directories. -s will give you a summary.

System Management

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

(35 responses)
  • A
    6% (2)
  • B
    91% (32)
  • C
    3% (1)

Explanation

-a, --all write counts for all files, not just directories. -s will give you a summary.

Topics

#du command#disk usage#file management#home directory

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice