Disk

lsblk

List information about all available block devices (disks, partitions).

Synopsis

syntax
lsblk [OPTION]... [DEVICE]...

Examples

List all block devices in tree format
lsblk
Show filesystems and mount points
lsblk -f
Custom column output
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT
Output in JSON format
lsblk -J

Common options

FlagDescription
-fShow filesystem info
-aShow all devices including empty
-oSpecify output columns
-JJSON output
-tShow topology info

About lsblk

The `lsblk` command list information about all available block devices (disks, partitions). Disk commands handle low-level storage operations including partitioning, formatting, filesystem checks, and block device management.

These tools are critical during system installation, storage expansion, data recovery, and performance tuning. Always exercise caution — disk operations can cause data loss if used incorrectly.

The command accepts 5 commonly used flags shown above, though the full set of options is available in the man page (`man lsblk`). The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More Disk Commands

Other commands in the Disk category

Related tools