nerdexam
CompTIA

XK0-004 · Question #235

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?

The correct answer is A. df -h. The df command reports disk space usage per mounted filesystem, making it the correct tool for checking how much space each partition is consuming.

Troubleshooting and Diagnostics

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 /

How the community answered

(20 responses)
  • A
    90% (18)
  • C
    5% (1)
  • D
    5% (1)

Why each option

The df command reports disk space usage per mounted filesystem, making it the correct tool for checking how much space each partition is consuming.

Adf -hCorrect

The df -h command displays the total size, used space, available space, and usage percentage for every mounted filesystem in a human-readable format, directly answering the question of how much space each partition is using.

Bdu -scg /

du -scg / estimates the cumulative disk usage of files and directories starting at the root, not the free or used space of individual partitions.

Cfdisk -l

fdisk -l lists partition table entries and their sizes on block devices but does not show how much space is currently used or free on a mounted filesystem.

Dfsck /

fsck / is a filesystem consistency checker and repair tool that does not report disk space usage.

Concept tested: Linux disk space reporting with df

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

Topics

#df command#disk usage#partition space#storage

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice