summaryrefslogtreecommitdiffstats
path: root/misc-utils/lsblk.8
diff options
context:
space:
mode:
authorKarel Zak2019-02-20 12:49:24 +0100
committerKarel Zak2019-02-20 12:49:24 +0100
commitb9c088f2f3a30adaa658b1e1ad0cf30b618a1559 (patch)
treec6041e9a1737a4695a27f524c8e3bfdafd1f5a9e /misc-utils/lsblk.8
parentlibsmartcols: print tree also for empty cells (diff)
downloadkernel-qcow2-util-linux-b9c088f2f3a30adaa658b1e1ad0cf30b618a1559.tar.gz
kernel-qcow2-util-linux-b9c088f2f3a30adaa658b1e1ad0cf30b618a1559.tar.xz
kernel-qcow2-util-linux-b9c088f2f3a30adaa658b1e1ad0cf30b618a1559.zip
lsblk: allow to specify tree column
* document --tree (was missing in the man page) * add optional argument to --tree to specify tree For example: $ lsblk -o KNAME,SIZE,MOUNTPOINT --tree=KNAME /dev/dm-0 KNAME SIZE MOUNTPOINT dm-0 232.9G └─dm-1 232.9G └─dm-2 232.9G Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/lsblk.8')
-rw-r--r--misc-utils/lsblk.86
1 files changed, 6 insertions, 0 deletions
diff --git a/misc-utils/lsblk.8 b/misc-utils/lsblk.8
index 2787569fe..07cd7a16f 100644
--- a/misc-utils/lsblk.8
+++ b/misc-utils/lsblk.8
@@ -30,6 +30,8 @@ is subject to change. So whenever possible, you should avoid using default
outputs in your scripts. Always explicitly define expected columns by using
.B \-\-output
.I columns-list
+and
+.B \-\-list
in environments where a stable output is required.
.PP
Note that
@@ -135,6 +137,10 @@ Output info about SCSI devices only. All partitions, slaves and holder devices
Print dependencies in inverse order. If the \fB\-\-list\fR output is requested then
the lines are still ordered by dependencies.
.TP
+.BR \-T , " \-\-tree" [ =\fIcolumn ]
+Force tree-like output format. If \fIcolumn\fP is specified, then a tree is printed in the column.
+The default is NAME column.
+.TP
.BR \-t , " \-\-topology"
Output info about block-device topology.
This option is equivalent to