lsblk do?list block devices (disks and their partitions) as a tree.
▸ Explain your own lsblk command →$ lsblk
$ lsblk -f
$ lsblk -p
$ lsblk -o NAME,SIZE,MOUNTPOINT
| -a | also list empty (zero-size) devices |
| -f | show filesystem info — type, label, and UUID |
| -m | show permission info — owner, group, and mode |
| -p | print full device paths (/dev/sda) instead of names |
| -b | print sizes in bytes rather than human units |
| -l | use a flat list instead of the tree layout |
| -n | don't print the header line |
| -o | choose exactly which columns to show |
| -S | list only SCSI devices |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.