List Block Devices
SH · System Infosyntax
lsblk [options]example
lsblk -foutput
NAME FSTYPE LABEL SIZE MOUNTPOINT
sda 100G
├─sda1 ext4 root 50G /
├─sda2 swap 4G [SWAP]
└─sda3 xfs data 46G /dataNote -f shows filesystem type, label, UUID, and mount points. Useful for identifying disks before mounting or partitioning. Linux only; on macOS, use diskutil list.