Courseiva
System ManagementmediumMultiple SelectObjective-mapped

XK0-006 System Management Practice Question

An administrator wants to gather information about disk usage for a specific directory and its subdirectories. Which TWO commands can be used for this purpose? (Choose two.)

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

du -sh /path gives a summary of total disk usage. du -h /path shows disk usage for each subdirectory in human-readable format. df shows filesystem-level usage, not directory-level.

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

    Why this is correct

    Summarizes total disk usage of the directory.

  • df -h /path

    Why it's wrong here

    df shows filesystem usage, not directory usage.

  • ls -lh /path

    Why it's wrong here

    ls shows file sizes, not recursive disk usage.

  • du -h /path

    Why this is correct

    Shows disk usage for each subdirectory.

  • stat /path

    Why it's wrong here

    stat shows metadata, not disk usage of contents.

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.