LSBLK(8) lsblk - lsblk [] [...] lsblk . lsblk sysfs udev db . ,,udev db" lsblk ,,udev", -, - . . , ( RAM ) . . --merge N:M . ( children[] JSON ) --tree. --nodeps --list . , --fs --topology, . , . --output - --list . lsblk --list-columns . lsblk udev . udevadm settle lsblk ,,udev"-. . . lsblk (.). ( ), . -A, --noempty . -a, --all RAM . -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 . RAM (=1) --all . . --list . -f, --fs . -o ,,,,,,%,. 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 . -J, --json . --output --tree . children[] --tree. -l, --list . 2.34 --pairs --raw ( ). -M, --merge - . . -m, --perms , . -o ,,,,. -N, --nvme ,,NVMe" . -v, --virtio ,,virtio" . -n, --noheadings . -o, --output . --list-columns . . ,," ( --tree). + (., lsblk -o +UUID). -O, --output-all . -P, --pairs ="". . - (\x<o>). --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 ' !~ "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 :: \ --ct-filter 'TYPE=="disk"' --ct _:: -r, --raw . . - (\x<o>) , , , . -S, --scsi SCSI . , . -s, --inverse . --list . -T, --tree[=] . , . . -t, --topology . -o ,,-,-,-,-,,,RQ-,RA,W-. -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 lsblk . . ,,udev" . --properties-by lsblk . . ,,file,udev,blkid". : udev ,,udev"-. , . blkid ,,libblkid". , . file . ,,--sysroot". . none . . -h, --help . -V, --version . 0 1 32 64 , ,,terminal-colors.d(5)" . /etc/terminal-colors.d/lsblk.disable lsblk /etc/terminal-colors.d/disable 2.41, $_ . $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. 2.6.27 ( 2008). , CONFIG_SYSFS . Milan Broz , Karel Zak blkid(8), findmnt(8) ls(1), scols-filter(5) , ,,https://github.com/util-linux/util-linux/issues[issue tracker]". lsblk ,,util-linux" . util-linux 2.42.3 2026-09-02 LSBLK(8)