Show the block-device tree with filesystems
Build a paste-ready command, then review its compatibility and effects before running it.
read-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementslsblklsblk must be installed and available on PATH.
Version supportlsblk Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsNAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTSRepresentative successful output; values vary with the selected target and system state.
Known errorslsblk: command not foundlsblk is missing or is not available on PATH.
Verifylsblk -fThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01lsblkCommandRuns the lsblk stage of this one-liner.
02-fOptionKeeps following new output or selects the command-specific force/file mode.
Example output
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 vfat FAT32 9A1B-2C3D 510M 1% /boot/efi
└─sda2 ext4 1.0 7e9d1bca-3f41-4a63-9f7e-223344556677 42G 31% /
Illustrative output — exact values vary by system and data.
Official sources