From e076b5526f52e59a8b9f35186e3753a206899694 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 24 Jun 2012 22:43:48 +0200 Subject: 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 Signed-off-by: Sami Kerola Signed-off-by: Karel Zak --- sys-utils/swapon.8 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'sys-utils/swapon.8') 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 . -- cgit v1.2.3-55-g7522