LSBLK(8) LSBLK(8) lsblk - lsblk [] [...] lsblk . lsblk sysfs udev . udev lsblk udev, LABEL, UUID . ' root. By default, the command prints all block devices (except RAM disks) in a tree-like format. The same device can be repeated in the tree if it relates to other devices. The --merge option is recommended for more complicated setups to gather groups of devices and describe complex N:M relationships. The tree-like output (or children[] array in the JSON output) is enabled only if NAME column it present in the output or when --tree command line option is used. See also --nodeps and --list to control the tree formatting. , , --fs --topology, . , , . --output - , . lsblk --list-columns . , lsblk , udev . udevadm settle lsblk, udev. ' . , . lsblk MOUNTPOINT MOUNTPOINTS (). MOUNTPOINT (, ), MOUNTPOINTS , ' . -A, --noempty . -a, --all , '. -b, --bytes Print sizes in bytes rather than in human-readable form. By default, sizes are shown in units that are powers of 1024 bytes. The formal abbreviations for these units (KiB, MiB, GiB, ...) are further shortened to just their first letter: K, M, G, .... -H, --list-columns List the columns that can be specified with the --output option. Can be used with --json or --raw to get the list in a machine-readable format. -D, --discard (TRIM, UNMAP) . -d, --nodeps - . , lsblk --nodeps /dev/sda sda. -E, --dedup . , . , , -E WWN. -e, --exclude , , . , ' (=1) , --all. . --list, . -f, --fs . -o NAME,FSTYPE,FSVER,LABEL,UUID,FSAVAIL,FSUSE%,MOUNTPOINTS. RAID blkid(8). --hyperlink[=when] Print paths as terminal hyperlinks. The optional when argument can be always, never, or auto. If the argument is omitted, it defaults to auto, which means that hyperlinks will only be used when the output goes to a terminal. -I, --include , , . . --list, . -i, --ascii ASCII . -J, --json JSON. --output, --tree, . , children[] , NAME --tree. -l, --list . ' , 2.34, , --pairs --raw ( ). -M, --merge RAID . . -m, --perms , . -o NAME,SIZE,OWNER,GROUP,MODE. -N, --nvme NVMe. -v, --virtio virtio. -n, --noheadings . -o, --output , . --list-columns, *). . <> (. --tree). , + (, lsblk -o +UUID) -O, --output-all . -P, --pairs ="". . (\x<>). . --shell. -p, --paths . -Q, --filter expression Print only the devices that meet the conditions specified by expression. The filter is assessed prior to lsblk collecting data for all output columns. Only the necessary data for the lazy evaluation of the expression is retrieved from the system. This approach can enhance performance when compared to post-filtering, as commonly done by tools such as grep(1). This feature is EXPERIMENTAL. See also scols-filter(5). For example, to exclude sda and sdb, but print everything else ('!~' is a negative regular-expression matching operator): lsblk --filter 'NAME !~ "sd[ab]"' --highlight expression Colorize lines matching expression. This feature is EXPERIMENTAL. See also scols-filter(5). --ct name[:parameter[:function]] Define a custom counter. Custom counters are printed after the standard output. The name is the custom name of the counter, the optional parameter is the name of the column to be used for the counter, and the optional function specifies the aggregation function. Supported functions are: count, min, max, sum. The default function is count. If parameter is not specified, then the counter counts the number of lines. This feature is EXPERIMENTAL. See also --ct-filter. For example, --ct MyCounter:SIZE:sum reports the total of the SIZE values. To report the number of SATA disks, one can use: lsblk --ct-filter 'TYPE=="disk" && TRAN=="sata"' \ --ct "Number of SATA devices" --ct-filter expression Define a restriction for the next counter. This feature is EXPERIMENTAL. See also --ct and scols-filter(5). For example, to aggregate sizes by device type: lsblk --ct-filter 'TYPE=="part"' --ct Partitions:SIZE:sum \ --ct-filter 'TYPE=="disk"' --ct WholeDisks:SIZE:sum -r, --raw . . (\x<>) NAME, KNAME, LABEL, PARTLABEL MOUNTPOINT. -S, --scsi SCSI. , . -s, --inverse . --list, . -T, --tree[=] . , . NAME. -t, --topology . -o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED,RQ-SIZE,RA,WSAME. -w, --width . , , . lsblk , . lsblk watch(1). -x, --sort . --list. --tree , . -y, --shell , , , , MIN_IO FSUSE_PCT MIN-IO FSUSE%. , , --pairs. , --pairs 2.37, --shell. -z, --zoned ' . --sysroot Linux, , lsblk. Linux, . udev. --properties-by This option specifies the methods used by lsblk to gather information about filesystems and partition tables. The list is a comma-separated list of method names. The default setting is "file,udev,blkid". The supported methods are: udev Reads data from udev DB. If unsuccessful, it continues to the next probing method. blkid Reads data directly from the device using libblkid. If unsuccessful, it continues to the next probing method. file Reads data from a file. This method is only used if the --sysroot option is specified. This method always stops probing if used. none . . -h, --help . -V, --version . 0 1 32 64 , terminal-colors.d(5). /etc/terminal-colors.d/{}.disable {} /etc/terminal-colors.d/disable 2.41, $NO_COLOR , . $XDG_CONFIG_HOME/terminal-colors.d $HOME/.config/terminal-colors.d . , terminal-colors.d . LSBLK_DEBUG=all lsblk. LIBBLKID_DEBUG=all libblkid. LIBMOUNT_DEBUG=all libmount. LIBSMARTCOLS_DEBUG=all libsmartcols. LIBSMARTCOLS_DEBUG_PADDING=on . LSBLK_COLUMNS= specifies a comma-separated list of output columns to print. All columns listed by --list-columns can be used. ( ) . lsblk :. /sys/dev/block. sysfs ' 2.6.27 ( 2008 ). , , CONFIG_SYSFS . Milan Broz , Karel Zak blkid(8), findmnt(8) ls(1), scols-filter(5) lsblk util-linux, Linux . util-linux 2.42.2 2026-06-16 LSBLK(8)