lsblk — block devices
cheat sheet · util-linux https://lab.dimsanych.ru/en/wiki/lsblk/Cheat sheet
-
lsblktree: disks → partitions → LVM/RAID -
lsblk -f+ filesystem, UUID, mountpoint -
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTcustom columns -
lsblk -ddisks only, no partitions -
lsblk -p /dev/sdbone device, full path -
lsblk -e 7skip loop devices (major 7)
Options
Below are the main flags; the full list is in man lsblk.