lsblk flags & options
Basic usage
List all block devices in a tree format.
lsblk
-f, --fs
Show filesystem info (type, label, UUID, mount point).
lsblk -f
-o, --output
Specify which columns to display.
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT,FSTYPE
-l, --list
Use flat list format instead of tree.
lsblk -l
-p, --paths
Show full device paths.
lsblk -p
-J, --json
Output as JSON.
lsblk -J
-b, --bytes
Show sizes in bytes instead of human-readable format.
lsblk -b
-d, --nodeps
Don't show child devices (partitions).
lsblk -d
-a, --all
Show empty devices too.
lsblk -a