XK0-006 System Management Practice Question
A Linux administrator needs to check the available disk space on all mounted filesystems in a human-readable format. Which command should the administrator use?
⚠ Common exam trap
Watch out — candidates often confuse disk usage reporting tools: df shows filesystem free space, while du shows how much space files and directories consume.
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
✓
df -h
df -h is the correct command because it reports filesystem disk space usage and free space for all mounted filesystems in human-readable units. The -h flag converts sizes to GB, MB, or KB as appropriate, making the output easy to interpret. Other commands either show file sizes, partition tables, or block device topology, not free space.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
fdisk -l
Why it's wrong here
fdisk -l lists partition tables and disk geometry, including partition sizes and types. It does not report filesystem-level free space or usage, and it requires root privileges. Because it shows partition layout rather than mounted filesystem capacity, it is not suitable for checking available disk space in a human-readable format.
- ✗
du -h
Why it's wrong here
du estimates file and directory space usage by recursively summing file sizes. While -h makes output human-readable, it reports how much space files consume, not the available free space on mounted filesystems. It does not show total capacity or free space, so it fails to meet the requirement of checking available disk space.
- ✗
lsblk
Why it's wrong here
lsblk displays block devices in a tree format, showing disks, partitions, and mountpoints. It provides size information but not free space or usage per filesystem. It is useful for identifying devices, but it does not report how much space is available on each mounted filesystem, so it does not satisfy the requirement.
- ✓
df -h
Why this is correct
The df command reports filesystem disk space usage, and the -h flag displays sizes in human-readable units such as GB and MB. This directly answers the need to view available space on all mounted filesystems in an easily readable format. It is the standard tool for this task and is available on virtually all Linux distributions.
Go deeper
Related to this question
Learn chapter
File Permissions and Ownership
Key term
Linux
Linux is an open-source operating system that manages computer hardware and software, widely used in servers, desktops, and embedded systems.
Key term
Output
In IT service management, output is the result or deliverable produced by a process, system, or component, such as data, reports, or services delivered to a customer.
About these practice questions
Courseiva writes every XK0-006 question from scratch — 781 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
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.