easyMultiple SelectObjective-mapped
XK0-006 Practice Question: Which TWO commands can be used to check disk…
Which TWO commands can be used to check disk space usage on a Linux system?
⚠ Common exam trap
Many candidates confuse `du` and `df` with commands like `mount` or `fdisk`, which are related to filesystem management but do not directly report disk space usage.
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
The `du` (disk usage) command estimates file and directory space usage, allowing you to check disk space consumed by specific paths. The `df` (disk free) command reports the total, used, and available space on mounted filesystems. Both are standard tools for inspecting disk space on Linux systems.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
mount
Why it's wrong here
Shows mounted filesystems, not space usage.
- ✗
lsof
Why it's wrong here
Lists open files, not disk space.
- ✓
du
Why this is correct
Summarizes disk usage of files/directories.
- ✗
fdisk
Why it's wrong here
Manipulates partition tables, not usage.
- ✓
df
Why this is correct
Displays disk space usage for mounted filesystems.
Go deeper
Related to this question
About these practice questions
One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.