Courseiva
easyMultiple Select

XK0-006 Practice Question: Which TWO commands display disk usage information…

Which TWO commands display disk usage information for filesystems? (Select 2.)

⚠ Common exam trap

A common pitfall on the CompTIA Linux+ exam is confusing filesystem usage commands (df, du) with partition management tools (fdisk, parted) or file listing commands (ls).

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

The `df` command (disk free) reports the amount of available and used disk space on all mounted filesystems, while `du` (disk usage) estimates file and directory space usage. Both commands are standard tools for displaying disk usage information for filesystems in Linux.

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

    Why it's wrong here

    ls lists directory entries and file metadata, not filesystem capacity or inode consumption. It is tempting because its long form shows file sizes, but that is per-file, not per-filesystem usage; df and du report the disk usage figures the question requires.

  • ✓

    du

    Why this is correct

    The du command reports disk usage of files and directories, recursively summing block consumption per path. It answers how much space files occupy, satisfying the stem's requirement to display disk usage information for filesystems, complementing df's filesystem-level view.

  • ✗

    parted

    Why it's wrong here

    parted creates, resizes and removes partitions, operating on the partition table rather than reporting filesystem consumption. It is tempting because it prints disk geometry and partition sizes, but those are layout figures, not usage; df and du report the required usage.

  • ✓

    df

    Why this is correct

    The df command reports disk usage information per mounted filesystem, showing total, used and available blocks plus mount points. It directly satisfies the stem's requirement to display filesystem disk usage, unlike du, which measures individual file and directory consumption.

  • ✗

    fdisk

    Why it's wrong here

    fdisk partitions block devices, editing the partition table rather than reporting filesystem usage. It is tempting because it displays disk and partition geometry, which looks like usage data, but it shows no capacity consumed; df and du provide the required filesystem usage.

About these practice questions

One of 781 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.