lsblk

List block devices and their mount points.

What it does

lsblk displays information about block devices such as disks, partitions, and mount points in a tree-like format.

Quick Start

# Show all block devices
lsblk

# Show filesystem info
lsblk -f

Examples

# Show sizes in human readable form
lsblk -o NAME,SIZE,MOUNTPOINT

# Show UUIDs
lsblk -o NAME,UUID

# Filter only disks
lsblk -d

Notes