lsblk
DisksBeginner In real LinuxList block devices (disks and partitions)
Name: lsblk = list block devices
This command needs a real Linux system; you can practise it in real Linux mode.
Description
lsblk lists block devices (disks, partitions, LVM volumes) as a tree with size, type and mount point; -f adds file system type and UUID. Check device names with it before partitioning or formatting.
Syntax
lsblk [OPTION]...Common options
| -f / --fs | Show file system type and UUID |
| -o / --output LIST | Columns, e.g. NAME,SIZE,MOUNTPOINT |
| -a / --all | Show empty devices too |
| -d / --nodeps | Disks only, not partitions |
| -p / --paths | Full device paths (/dev/sda1) |
| -b / --bytes | Sizes in bytes |
| -J / --json | Output JSON |