Courseiva
easyMultiple ChoiceObjective-mapped

XK0-006 Practice Question: A junior administrator needs to check the disk…

A junior administrator needs to check the disk usage of the /var filesystem to ensure it does not exceed 80% capacity. Which command should be used?

⚠ Common exam trap

Candidates often confuse `du` (directory usage) with `df` (filesystem usage), leading them to pick `du -sh /var` when they need to check overall filesystem capacity, not just the size of the directory 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

df -h /var

The `df -h /var` command displays disk usage for the `/var` filesystem in human-readable format (e.g., GB, MB). This is the correct tool to check filesystem capacity and usage percentage, which directly answers whether usage exceeds 80%.

Answer analysis

Option-by-option breakdown

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

  • df -h /var

    Why this is correct

    The `df -h` command with the `/var` argument queries the kernel’s mounted-filesystem table for the `/var` mount point, reporting used blocks and inodes in human-readable units (e.g., GiB). The `-h` flag converts raw 1024-byte blocks into scaled output, enabling the junior administrator to compare the “Use%” column directly against the 80% capacity constraint specified in the stem.

  • fdisk -l /var

    Why it's wrong here

    fdisk manipulates partition tables, not usage.

  • du -sh /var

    Why it's wrong here

    du shows directory usage, not filesystem-level summary.

  • lsblk /var

    Why it's wrong here

    lsblk lists block devices, not usage.

About these practice questions

One of 979 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.