lsblk command
List disks, partitions and where they are mounted.
- Disks & storage
- Package util-linux
- 4 options · 4 examples
On this page
Syntax
lsblk [options] [device…]Provided by the util-linux package. Run man lsblk for the full manual.
Common options
| Option | What it does |
|---|---|
-f | Show file systems, labels and UUIDs |
-o COLUMNS | Choose columns |
-d | Disks only, no partitions |
-p | Full device paths |
Examples
List disks and partitions
lsblkWith file systems and UUIDs
lsblk -fDisks only
lsblk -dPick columns
lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS,MODEL
No example matches. Check the options table or search the guides.
