TOOL » LINUX » PACKAGE

Lsblk

Usage

shell
lsblk OPTIONS DEVICE
OptionDescription
-f --fsOutput info about filesystems.
-o --outputSpecify which output columns to print. Extend default list with the +column syntax.
--helpGet full list of options and available columns.

Example

Check file system of all connected storage devices.

shell
lsblk -o +FSTYPE,UUID

Easy to read disk usage command:

shell
lsblk -o 'NAME,FSTYPE,SIZE,FSUSED,FSUSE%,MOUNTPOINTS'