diff options
author | Sami Kerola | 2012-06-24 22:43:48 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-10 13:41:59 +0200 |
commit | e076b5526f52e59a8b9f35186e3753a206899694 (patch) | |
tree | 11e85bdd4b657dffa8a5905b54147984ec9df8a6 /sys-utils/swapon.8 | |
parent | uuidd: use configured run state directory in manual etc (diff) | |
download | kernel-qcow2-util-linux-e076b5526f52e59a8b9f35186e3753a206899694.tar.gz kernel-qcow2-util-linux-e076b5526f52e59a8b9f35186e3753a206899694.tar.xz kernel-qcow2-util-linux-e076b5526f52e59a8b9f35186e3753a206899694.zip |
swapon: add --show option
The --show uses lib/tt.c, which allows user to specify columns he is
interested of, and avoids using hard coded field sizes which may be
problematic when system has large enough swap.
[kzak@redhat.com: - improve usage(), remove unused code]
Cc: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/swapon.8')
-rw-r--r-- | sys-utils/swapon.8 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-utils/swapon.8 b/sys-utils/swapon.8 index ee6a2fcf6..6e97f17fd 100644 --- a/sys-utils/swapon.8 +++ b/sys-utils/swapon.8 @@ -164,6 +164,23 @@ for use with Display swap usage summary by device. Equivalent to "cat /proc/swaps". Not available before Linux 2.1.25. .TP +\fB\-\-show\fR [\fIcolumn,column\fR] +Display definable device table similar to +.B \-\-summary +output. See \-\-help output for +.I column +list. +.TP +.B \-\-noheadings +Do not print headings when displaying +.B \-\-show +output. +.TP +.B \-\-raw +Display +.B \-\-show +output without aligning table columns. +.TP .B "\-U \fIuuid\fP" Use the partition that has the specified .IR uuid . |