List disks and filesystems with lsblk -f
lsblk -f prints every block device as a tree with its filesystem type, UUID, label and mount point — the quickest way to identify which partition is which before formatting or mounting.
01Command
$ lsblk -f02What it does
Unlike fdisk -l, lsblk reads sysfs and needs no root, and unlike df it also shows unmounted devices. It is the natural first command when a USB drive shows up empty, when you need the UUID for /etc/fstab, or when distinguishing an NVMe drive from a SATA disk. Add `-o NAME,SIZE,ROTA,MODEL` to also see the drive model and whether it is an SSD or spinning disk.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- lsblk(8)Evidence: device tree view with -o to choose columns
- lsblk(8) — list block devicesEvidence: lsblk -f also prints filesystem type, UUID and mountpoint
Last verified: 2026-09-18 · Category: System & Settings
06Related solutions
autoremove deletes no-longer-needed dependency packages, and clean wipes the downloaded .deb cache in /var/cache/apt/archives.
ncdu scans a directory tree, then lets you browse sizes, navigate, and delete space hogs with one keypress.
Check how much space the binary journal consumes and permanently trim it by size, age, or file count.