System and processes
The lsblk command
Lists disks and their partitions as a tree, with sizes and mount points.
Syntax
lsblk [-f]Most useful options
-fShows the filesystem and UUID-pShows full device pathsCopy-ready examples
$ lsblkDisks and partitions$ lsblk -fWith filesystemYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- lsblk needs no sudo, but some systems require it for certain details.
FAQ
What is the difference between sda and sda1?
sda is the whole disk; sda1 is its first partition.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course