LFCS Storage Management Practice Question
A Linux administrator needs to view the UUID and filesystem type of all block devices. Which command provides this information?
⚠ Common exam trap
It's easy for candidates to confuse `fdisk -l` (which shows partition table info) with `blkid` (which shows filesystem metadata), assuming the partition type code (e.g., 0x83) is equivalent to the filesystem type.
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
✓
blkid
The `blkid` command is the correct tool because it directly queries the kernel's block device attributes via the libblkid library, displaying the UUID, filesystem type (e.g., ext4, xfs), and other metadata (like LABEL or PARTUUID) for all block devices. It reads from the `/dev/disk/by-uuid/` symlinks and the kernel's device mapper, making it the standard utility for this specific task.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
blkid
Why this is correct
Correct command.
- ✗
/proc/partitions
Why it's wrong here
Only major/minor numbers, no UUIDs.
- ✗
ls -l /dev
Why it's wrong here
Lists device files, no filesystem info.
- ✗
fdisk -l
Why it's wrong here
Shows partition tables, not UUIDs.
Go deeper
Related to this question
About these practice questions
Courseiva writes every LFCS question from scratch — 507 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.