Courseiva
mediumMultiple ChoiceObjective-mapped

XK0-006 Practice Question: A server's root filesystem is 100% full according…

A server's root filesystem is 100% full according to df -h. Which command should the administrator use to locate large files?

⚠ Common exam trap

CompTIA often tests the distinction between listing files (`ls`) and measuring disk usage (`du`), trapping candidates who think `ls -la` shows file sizes that reflect actual disk consumption, ignoring that `ls` reports logical size while `du` reports physical blocks allocated.

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 /*

The `du -sh /*` command calculates disk usage for each top-level directory and file under `/`, summarizing the total in human-readable format. This directly identifies which directories or files consume the most space, allowing the administrator to pinpoint the cause of the 100% full root filesystem.

Answer analysis

Option-by-option breakdown

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

  • ls -la /

    Why it's wrong here

    Lists files but not sizes of directories.

  • fdisk -l

    Why it's wrong here

    Shows partition table, not file sizes.

  • du -sh /*

    Why this is correct

    Shows sizes of top-level directories.

  • find / -size +100M

    Why it's wrong here

    Finds files larger than 100MB, but directory overview is faster.

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 →

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.