LPIC-1 Devices, Filesystems and FHS Practice Question
A Linux system has multiple disk partitions. The administrator wants to view the UUID of a specific partition for use in /etc/fstab. Which command will display the UUID?
⚠ Common exam trap
Many candidates confuse `lsblk -f` (which shows all UUIDs in a tree format) as the command for a specific partition, or think `fdisk -l` displays UUIDs, when in fact `blkid` is the dedicated tool for querying a single partition's UUID.
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 /dev/sda1
The `blkid` command queries the libblkid library to display block device attributes, including the UUID and filesystem type. Running `blkid /dev/sda1` outputs the UUID for that specific partition, which can be directly copied into /etc/fstab for persistent mounting.
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 /dev/sda1
Why this is correct
blkid displays UUID and other attributes of the specified device.
- ✗
fdisk -l /dev/sda1
Why it's wrong here
fdisk -l shows partition table, not UUID.
- ✗
lsblk -f
Why it's wrong here
lsblk -f shows filesystem type and UUID for all devices, but requires parsing; blkid is more direct for a specific device.
- ✗
cat /proc/partitions
Why it's wrong here
/proc/partitions lists partition numbers and sizes, not UUID.
Go deeper
Related to this question
About these practice questions
Courseiva writes every LPIC-1 question from scratch — 527 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 LPIC-1 practice question is part of Courseiva's free LPI 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 LPIC-1 exam.