easyMultiple ChoiceObjective-mapped
XK0-006 Practice Question: That the /home partition is running out of space
A user reports that the /home partition is running out of space. Which command identifies the largest directories under /home?
⚠ Common exam trap
Candidates often confuse `df` (filesystem-level usage) with `du` (directory-level usage), or assume `ls -lhS` or `find -size` can accurately report directory disk consumption, when only `du` correctly accounts for all nested file contents.
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 /home/*
`du -sh /home/*` calculates the disk usage of each top-level item under /home, with `-s` summarizing each directory and `-h` providing human-readable sizes. This directly identifies the largest directories consuming space, which is exactly what the user needs to troubleshoot the /home partition running out of 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.
- ✓
du -sh /home/*
Why this is correct
du -sh gives human-readable totals for each top-level item under /home.
- ✗
df -h /home
Why it's wrong here
df shows filesystem disk usage, not per-directory details.
- ✗
ls -lhS /home
Why it's wrong here
ls lists files in the directory, not recursively, and does not calculate total sizes of subdirectories.
- ✗
find /home -type d -size +100M
Why it's wrong here
find with -size on directories is unreliable for directory sizes; du is the standard tool.
Go deeper
Related to this question
About these practice questions
Courseiva writes every XK0-006 question from scratch — 979 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 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.