Disk and Storage

lsblk

Lists block devices in a tree.

lsblk shows disks, partitions, mount points, sizes, and filesystem data in a readable tree.

Syntax
lsblk [options]

Arguments explained

  • -f shows filesystem type, label, and UUID.
  • -o selects columns.
  • -p prints full device paths.

Common examples

Show disks and filesystems
lsblk -f

Displays device tree with filesystem metadata.

Choose columns
lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS

Shows selected storage fields.

lsblk Command
FieldDetails
Commandlsblk
CategoryDisk and Storage
Primary useLists block devices in a tree.
Syntaxlsblk [options]