Beginner Package: util-linux

lsblk

List block devices in a tree view.

Syntax

lsblk [options]

Description

lsblk shows every disk and partition attached to the system as a readable tree, including size, mount point and filesystem type, and is usually the first command run before partitioning or mounting anything.

Examples

lsblk
Show all block devices and their partitions
lsblk -f
Include filesystem type and UUID in the output
lsblk -o NAME,SIZE,MOUNTPOINT
Choose exactly which columns to display

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux

Put it into practice

Learn this in context