Courseiva
System ManagementmediumMultiple SelectObjective-mapped

XK0-006 df Practice Question

A Linux administrator needs to display the amount of disk space used by each mounted filesystem. Which two commands can be used? (Choose two.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

du -h /

The question asks for two commands that display the amount of disk space used by each mounted filesystem. Both df -h (option E) and du -h / (option A) serve this purpose. df -h shows disk space usage for all mounted filesystems in human-readable format. du -h / shows disk usage for the root directory, which is a mounted filesystem; while du is typically used for directory-level usage, the root directory corresponds to the root filesystem, so it effectively displays the disk space used by that filesystem. mount | column -t (option B) lists mount points and options, not space usage. lsblk (option C) lists block devices, not filesystem space. fdisk -l (option D) displays partition tables, not filesystem usage. Therefore, options A and E are correct.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • du -h /

    Why this is correct

    du -h / displays the disk usage of the root directory, which corresponds to the root filesystem, thus showing the amount of disk space used by a mounted filesystem.

  • mount | column -t

    Why it's wrong here

    mount | column -t lists mounts but does not show disk space usage.

  • lsblk

    Why it's wrong here

    lsblk lists block devices but does not show filesystem space usage.

  • fdisk -l

    Why it's wrong here

    fdisk -l displays partition tables, not filesystem usage.

  • df -h

    Why this is correct

    df -h shows disk space usage for all mounted filesystems in human-readable format, directly answering the question.

About these practice questions

This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.