1 .\" Copyright (c) 2023 Benjamin Stürz <benni@stuerz.xyz>
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 .TH LSBLK 8 lsblk-@VERSION@ 2023-05-05
16 lsblk \- list block devices
24 utility can be used to examine block devices attached to the system.
27 operands it lists the specified devices.
28 Otherwise it lists all attached block devices.
32 prints version information to stdout, then exit.
38 don't scan for RAID volumes using
42 don't print fancy unicode characters, only print ASCII.
45 don't print the header.
48 also print the disklabel UID.
51 also print the filesystem usage of each partition
52 and the disklabel usage of each disk.
54 Note: The disklabel usage is calculated by
55 summing the size of all (except "c") partitions.
57 Note 2: lsblk shows the total amount of free space,
58 including space reserved for /root.
63 utility exits 0 on success, and >0 if an error occurs.
66 The following line lists all block devices:
72 The following line lists all fields of sd0:
79 Explain the exact meaning of every field.
89 utility was originally written by the
94 clone of the original \fBlsblk\fR.
95 It is incompatible because it doesn't support
96 the same set of options as the original
97 and because of differences in the output.
98 More incompatibilities are caused by specific features only being available
99 on either Linux or OpenBSD.