nerdexam
CompTIACompTIA

XK0-005 · Question #235

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

The correct answer is A: df -h. To determine the disk space usage for each mounted partition on a Linux system, the df command provides a clear overview.

System Management

Question

An administrator receives an alarm because the disk of one of the sewers is running out of space. Which of the following commands can be used to see the space that each partition is using?

Options

  • Adf -h
  • Bdu -scg /
  • Cfdisk -l
  • Dfsck /

Explanation

To determine the disk space usage for each mounted partition on a Linux system, the df command provides a clear overview.

Common mistakes.

  • B. du -scg / calculates the disk usage of files and directories within the specified path (/ in this case) and provides a total, but it doesn't show the overall usage statistics for each mounted partition.
  • C. fdisk -l lists the partition table and sizes of disk partitions but does not report their current usage or free space, which is dynamic filesystem information.
  • D. fsck / is a utility used to check and repair Linux filesystems for errors, not to report on their current disk space utilization.

Concept tested. Linux disk space usage reporting

Reference. https://www.man7.org/linux/man-pages/man1/df.1.html

Topics

#disk space management#file system monitoring#df command#Linux commands

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions