[procps] [PATCH 2/2] docs: free great modernization manual page fixes

  • From: Sami Kerola <kerolasa@xxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Wed, 13 Apr 2011 22:31:38 +0200

Mention long options, and new options, in manual page.

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 free.1 |   63 +++++++++++++++++++++++++++++++++++++++------------------------
 1 files changed, 39 insertions(+), 24 deletions(-)

diff --git a/free.1 b/free.1
index cae1241..fb56027 100644
--- a/free.1
+++ b/free.1
@@ -1,58 +1,73 @@
 .\"             -*-Nroff-*-
 .\"  This page Copyright (C) 1993 Matt Welsh, mdw@xxxxxxxxxxxxxxxx
 .\"  Freely distributable under the terms of the GPL
-.TH FREE 1 "5 Oct 2009 " "Cohesive Systems" "Linux User's Manual"
+.TH FREE 1 "13 Apr 2011 " "Cohesive Systems" "Linux User's Manual"
 .SH NAME
 free \- Display amount of free and used memory in the system
 .SH SYNOPSIS
 .B free
-.RB [ \-b | \-k | \-m | \-g ]
-.RB [ \-c
-.IR count ]
-.RB [ \-l ]
-.RB [ \-o ]
-.RB [ \-t ]
-.RB [ \-s
-.IR delay ]
-.RB [ \-V ]
+.RB [ options ]
 .SH DESCRIPTION
 \fBfree\fP displays the total amount of free and used physical and swap 
 memory in the system, as well as the buffers used by the kernel.
 The shared memory column should be ignored; it is obsolete.
 .SS OPTIONS
 .TP
-\fB\-b\fR
+\fB\-b, \-\-bytes\fR
 Display the amount of memory in bytes.
 .TP
-\fB\-c\fR \fIcount\fR
-Display the result \fIcount\fR times.  Requires the \fB\-s\fR option.
+\fB\-k, \-\-kilo\fR
+Display the amount of memory in kilobytes. This is the default.
+.TP
+\fB\-m, \-\-mega\fR
+Display the amount of memory in megabytes.
 .TP
-\fB\-g\fR
+\fB\-g, \-\-giga\fR
 Display the amount of memory in gigabytes.
 .TP
-\fB\-k\fR
-Display the amount of memory in kilobytes. This is the default.
+\fB\-\-tera
+Display the amount of memory in terabytes.
 .TP
-\fB\-l\fR
-Show detailed low and high memory statistics.
+\fB\-h, \-\-human\fP
+Show all output fields automatically scaled to shortest three
+digit unit and display the units of print out. Following units
+are used.
+
+.nf
+  B = bytes
+  K = kilos
+  M = megas
+  G = gigas
+  T = teras
+.fi
+
+If you see "report a bug", and you have petabyte of RAM or swap,
+the error is false positive. In some other case the message means
+that something is not working.
 .TP
-\fB\-m\fR
-Display the amount of memory in megabytes.
+\fB\-c, \-\-count\fR \fICOUNT\fR
+Display the result \fIcount\fR times.  Requires the \fB\-s\fR option.
 .TP
-\fB\-o\fR
+\fB\-l, \-\-lohi\fR
+Show detailed low and high memory statistics.
+.TP
+\fB\-o, \-\-old\fR
 Display the output in old format, the only difference being this option
 will disable the display of the "buffer adjusted" line.
 .TP
-\fB\-s\fR
+\fB\-s, \-\-seconds\fR \fISECONDS\fR
 Continuously display the result \fIdelay\fP seconds apart. You
 may actually specify any floating point number for \fIdelay\fP, 
 .BR usleep (3)
 is used for microsecond resolution delay times.
 .TP
-\fB\-t\fR
+\fB\-t, \-\-total\fR
 Display a line showing the column totals.
 .TP
-\fB\-V\fR
+\fB\-\-help\fP
+Print help.
+.TP
+\fB\-\-version\fR
 Display version information.
 .SH FILES
 .nf
-- 
1.7.4.4


Other related posts: