mediumMultiple ChoiceObjective-mapped
XK0-006 Practice Question: A system administrator notices that the root…
A system administrator notices that the root filesystem is at 95% capacity. Which command should be used to identify the directories consuming the most space?
⚠ Common exam trap
Many candidates confuse `df -h` (filesystem-level overview) with `du -sh` (directory-level detail), mistakenly thinking `df` can pinpoint which directories are consuming space.
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 -sh /*
B is correct because `du -sh /*` calculates disk usage for each top-level directory under root, showing human-readable sizes. This directly identifies which directories consume the most space, allowing the administrator to pinpoint the source of the 95% capacity issue.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
df -h
Why it's wrong here
Shows filesystem usage, not directory sizes.
- ✓
du -sh /*
Why this is correct
Shows size of each top-level directory.
- ✗
fdisk -l
Why it's wrong here
Shows partition table, not directory sizes.
- ✗
ls -la /
Why it's wrong here
Lists files, not sizes recursively.
Go deeper
Related to this 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 →
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.