Courseiva
mediumMultiple ChoiceObjective-mapped

XK0-006 Practice Question: The output of df -h shows the root filesystem at…

Exhibit

Refer to the exhibit.
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       20G   20G     0 100% /
/dev/sda2       50G   10G   40G  20% /home
tmpfs          1.9G  1.2M  1.9G   1% /tmp

The output of df -h shows the root filesystem at 100% capacity. Which of the following commands should the administrator run NEXT to identify the cause?

⚠ Common exam trap

CompTIA often tests the distinction between listing files (`ls`) and measuring disk usage (`du`), trapping candidates who think `ls -la /` will reveal space consumption when it only shows metadata and not recursive sizes.

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 and displays the disk usage of each top-level directory in the root filesystem. When `df -h` shows 100% capacity, the next logical step is to identify which directories are consuming the most space, so the administrator can drill down further. This command is the standard tool for pinpointing space hogs before taking corrective action.

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 /dev/sda

    Why it's wrong here

    Shows partition table, not file usage.

  • fsck /dev/sda1

    Why it's wrong here

    Checks filesystem integrity, not space usage.

  • ls -la /

    Why it's wrong here

    Lists files but not sizes.

  • du -sh /*

    Why this is correct

    Shows directory sizes to find space hogs.

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 →

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.