๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

๐Ÿ’ก Disk & Storage April 25, 2026 15

Linux Command: lsblk

List block devices in a tree view with filesystem info

Terminal โ€” Disk & Storage
Command
$ lsblk -f
Output
NAME FSTYPE FSVER LABEL UUID MOUNTPOINTS sda โ”œโ”€sda1 vfat FAT32 EFI 1234-ABCD /boot/efi โ””โ”€sda2 ext4 1.0 root a1b2c3d4-e5f6-... /

lsblk shows block devices and partitions as a clean tree. -f adds filesystem info, -o customizes columns (NAME,SIZE,MODEL,SERIAL), -J outputs JSON for scripts. Complements df -h (mount usage) and blkid (UUID lookup).

Share this tip