lsblk [device]

List block devices

Arguments

NameDescription
deviceDevice to list

Options

NameDescription
--help, -hShow help for lsblk
--version, -VShow version for lsblk
--all, -aAlso list empty devices and RAM disk devices
--bytes, -bPrint the SIZE column in bytes
--discard, -DPrint information about the discarding capabilities (TRIM, UNMAP) for each device
--nodeps, -dDo not print holder devices or slaves
--dedup, -E <column>Use column as a de-duplication key to de-duplicate output tree
--exclude, -e <list>Exclude the devices specified by the comma-separated list of major device numbers
--fs, -fOutput info about filesystems
--include, -I <list>Include devices specified by the comma-separated list of major device numbers
--ascii, -iUse ASCII characters for tree formatting
--json, -JUse JSON output format
--list, -lProduce output in the form of a list
--merge, -MGroup parents of sub-trees to provide more readable output for RAIDs and Multi-path devices
--perms, -mOutput info about device owner, group and mode
--noheadings, -nDo not print a header line
--output, -o <list...>Specify which output columns to print
--output-all, -OOutput all available columns
--pairs, -PProduce output in the form of key-value pairs
--raw, -rProduce output in raw format
--scsi, -SOutput info about SCSI devices only
--inverse, -sPrint dependencies in inverse order
--tree, -T <column>Force tree-like output format
--topology, -tOutput info about block-device topology
--width, -w <number>Specifies output width as a number of characters
--sort, -x <column>Sort output lines by column
--zoned, -zPrint the zone model for each device
--sysroot <directory>Gather data for a Linux instance other than the instance from which the lsblk command is issued