docs: free great modernization manual page fixes

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

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-04-18 19:30:21 +02:00 committed by Jan Görig
parent d13fbc34a7
commit 11049a7c98

73
free.1
View File

@ -1,58 +1,77 @@
.\" -*-Nroff-*- .\" -*-Nroff-*-
.\" This page Copyright (C) 1993 Matt Welsh, mdw@sunsite.unc.edu. .\" This page Copyright (C) 1993 Matt Welsh, mdw@sunsite.unc.edu.
.\" Long options where added at April 15th, 2011.
.\" Freely distributable under the terms of the GPL .\" Freely distributable under the terms of the GPL
.TH FREE 1 "5 Oct 2009 " "Cohesive Systems" "Linux User's Manual" .TH FREE 1 "15 Apr 2011 " "Cohesive Systems" "Linux User's Manual"
.SH NAME .SH NAME
free \- Display amount of free and used memory in the system free \- Display amount of free and used memory in the system
.SH SYNOPSIS .SH SYNOPSIS
.B free .B free
.RB [ \-b | \-k | \-m | \-g ] .RB [ options ]
.RB [ \-c
.IR count ]
.RB [ \-l ]
.RB [ \-o ]
.RB [ \-t ]
.RB [ \-s
.IR delay ]
.RB [ \-V ]
.SH DESCRIPTION .SH DESCRIPTION
\fBfree\fP displays the total amount of free and used physical and swap \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. memory in the system, as well as the buffers used by the kernel.
The shared memory column should be ignored; it is obsolete. The shared memory column should be ignored; it is obsolete.
.SS OPTIONS .SS OPTIONS
.TP .TP
\fB\-b\fR \fB\-b, \-\-bytes\fR
Display the amount of memory in bytes. Display the amount of memory in bytes.
.TP .TP
\fB\-c\fR \fIcount\fR \fB\-k, \-\-kilo\fR
Display the result \fIcount\fR times. Requires the \fB\-s\fR option.
.TP
\fB\-g\fR
Display the amount of memory in gigabytes.
.TP
\fB\-k\fR
Display the amount of memory in kilobytes. This is the default. Display the amount of memory in kilobytes. This is the default.
.TP .TP
\fB\-l\fR \fB\-m, \-\-mega\fR
Show detailed low and high memory statistics.
.TP
\fB\-m\fR
Display the amount of memory in megabytes. Display the amount of memory in megabytes.
.TP .TP
\fB\-o\fR \fB\-g, \-\-giga\fR
Display the amount of memory in gigabytes.
.TP
\fB\-\-tera
Display the amount of memory in terabytes.
.TP
\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 unit is missing, and you have petabyte of RAM or swap, the
number is in terabytes and columns might not be aligned with
header.
.TP
\fB\-c, \-\-count\fR \fICOUNT\fR
Display the result \fIcount\fR times. Requires the \fB\-s\fR option.
.TP
\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 Display the output in old format, the only difference being this option
will disable the display of the "buffer adjusted" line. will disable the display of the "buffer adjusted" line.
.TP .TP
\fB\-s\fR \fB\-s, \-\-seconds\fR \fISECONDS\fR
Continuously display the result \fIdelay\fP seconds apart. You Continuously display the result \fIdelay\fP seconds apart. You
may actually specify any floating point number for \fIdelay\fP, may actually specify any floating point number for \fIdelay\fP,
.BR usleep (3) .BR usleep (3)
is used for microsecond resolution delay times. is used for microsecond resolution delay times.
.TP .TP
\fB\-t\fR \fB\-\-si\fP
Use power of 1000 not 1024.
.TP
\fB\-t, \-\-total\fR
Display a line showing the column totals. Display a line showing the column totals.
.TP .TP
\fB\-V\fR \fB\-\-help\fP
Print help.
.TP
\fB\-V, \-\-version\fR
Display version information. Display version information.
.SH FILES .SH FILES
.nf .nf
@ -61,7 +80,7 @@ Display version information.
.SH AUTHORS .SH AUTHORS
Written by Brian Edmonds. Written by Brian Edmonds.
Send bug reports to <albert@users.sf.net> Send bug reports to <procps@freelists.org>
.SH "SEE ALSO" .SH "SEE ALSO"
.BR ps "(1), " slabtop "(1), " top "(1), " vmstat (8). .BR ps "(1), " slabtop "(1), " top "(1), " vmstat (8).
.\"{{{}}} .\"{{{}}}