LFCS Storage Management Practice Question
Which of the following commands can be used to display the total, used, and available space for all mounted ext4 filesystems?
⚠ Common exam trap
It's easy for candidates to confuse `lsblk` or `fdisk -l` as disk space commands, but these tools show partition layout or device information, not filesystem-level usage statistics like total, used, and available space.
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 -hT
The `df -hT` command displays disk space usage for all mounted filesystems, with the `-h` flag providing human-readable sizes (e.g., GB, MB) and the `-T` flag showing the filesystem type (e.g., ext4). This directly meets the requirement to show total, used, and available space for all mounted ext4 filesystems.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
lsblk
Why it's wrong here
lsblk lists block devices and their mountpoints but reports no filesystem usage figures, so it cannot show total, used and available space. It is tempting because it does enumerate mounted ext4 volumes, and would suit identifying device names before running df on them.
- ✗
fdisk -l
Why it's wrong here
fdisk -l reads partition tables, showing geometry, sizes and types, but never mount status or filesystem free space. It is tempting because it does report per-partition capacity, and would be the right tool for inspecting or repartitioning disk layout rather than reporting usage.
- ✓
df -hT
Why this is correct
The `-T` flag adds a filesystem type column, letting you filter the output to ext4 only, while `-h` presents total, used, and available space in human-readable units. Plain `df` omits the type column, so it cannot isolate ext4 mounts as the question requires.
- ✗
tune2fs -l /dev/sda1
Why it's wrong here
tune2fs -l prints superblock metadata for one named device, including block counts, but not mount-wide used or available space across all mounted ext4 filesystems. It is tempting because it targets ext4 specifically, and would suit checking filesystem parameters or reserved block percentages.
Go deeper
Related to this question
About these practice questions
Courseiva writes every LFCS question from scratch — 406 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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.