Options (7)
-a, --allbooleanAlso list empty devices
lsblk {{[-a|--all]}}-b, --bytesbooleanPrint the SIZE column in bytes rather than in a human-readable format
lsblk {{[-b|--bytes]}}-f, --fsbooleanOutput info about filesystems
lsblk {{[-f|--fs]}}-i, --asciibooleanUse ASCII characters for tree formatting
lsblk {{[-i|--ascii]}}-t, --topologybooleanOutput info about block-device topology
lsblk {{[-t|--topology]}}-e, --excludebooleanExclude the devices specified by the comma-separated list of major device numbers
lsblk {{[-e|--exclude]}} {{1,7,...}}-o, --outputbooleanAdd extra information to the output using a comma-separated list of columns (omit the `+` sign to only display the specified columns)
lsblk {{[-o|--output]}} +{{NAME,ROTA,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}Examples (8)
List all storage devices in a tree-like format
Also list empty devices
lsblk [-a|--all]Print the SIZE column in bytes rather than in a human-readable format
lsblk [-b|--bytes]Output info about filesystems
lsblk [-f|--fs]Use ASCII characters for tree formatting
lsblk [-i|--ascii]Output info about block-device topology
lsblk [-t|--topology]Exclude the devices specified by the comma-separated list of major device numbers
lsblk [-e|--exclude] 1,7,...Add extra information to the output using a comma-separated list of columns (omit the `+` sign to only display the specified columns)
lsblk [-o|--output] +NAME,ROTA,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...