2
.TH LSBLK 8 "Apr 2010" "Version 1.0"
4
lsblk \- list block devices
14
lists information about all or the specified block devices. The
18
filesystem to gather information.
20
The command prints all block devices (except RAM disks) in a tree-like format
23
to get a list of all available columns.
25
.IP "\fB\-a, \-\-all\fP"
26
List all block devices.
27
.IP "\fB\-b, \-\-bytes\fP"
28
Print the SIZE column in bytes rather than in human-readable format.
29
.IP "\fB\-d, \-\-nodeps\fP"
30
Don't print device holders or slaves. For example "lsblk --nodeps /dev/sda" prints
31
information about the sda device only.
32
.IP "\fB\-e, \-\-exclude \fIlist\fP
33
Exclude the devices specified by a comma-delimited list of major device numbers.
34
Note that RAM disks (major=1) are excluded by default.
35
.IP "\fB\-f, \-\-fs\fP
36
Output info about filesystems. This option is equivalent to "-o NAME,FSTYPE,LABEL,MOUNTPOINT".
37
The authoritative information about filesystems and raids is provided by the
40
.IP "\fB\-h, \-\-help\fP"
41
Print a help text and exit.
42
.IP "\fB\-i, \-\-ascii\fP"
43
Use ascii characters for tree formatting.
44
.IP "\fB\-m, \-\-perms\fP
45
Output info about device owner, group and mode. This option is equivalent to "-o NAME,SIZE,OWNER,GROUP,MODE".
46
.IP "\fB\-l, \-\-list\fP"
47
Use the list output format.
48
.IP "\fB\-n, \-\-noheadings\fP"
49
Do not print a header line.
50
.IP "\fB\-o, \-\-output \fIlist\fP"
51
Specify which output columns to print. Use
53
to get a list of all supported columns.
54
.IP "\fB\-r, \-\-raw\fP"
55
Use the raw output format.
56
.IP "\fB\-t, \-\-topology\fP"
57
Output info about block device topology.
58
This option is equivalent to "-o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED".
61
Milan Broz <mbroz@redhat.com>
62
Karel Zak <kzak@redhat.com>
69
The lsblk command is part of the util-linux package and is available from
70
ftp://ftp.kernel.org/pub/linux/utils/util-linux/.