misc/77280: Typo in swapon man page

Ian cdine at cdine.org
Tue Feb 8 14:40:22 PST 2005

>Number:         77280
>Category:       misc
>Synopsis:       Typo in swapon man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 08 22:40:12 GMT 2005
>Originator:     Ian
>Release:        FreeBSD 5.3-RELEASE
Negative Nine Security (Neg9)
FreeBSD dedication.neg9.org 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #0: Mon Jan  3 02:17:43 PST 2005
root at dedication.neg9.org:/usr/obj/usr/src/sys/SMIRNOFF  i386

Snipped from `man swapon` (Yes, swapon, swapinfo does not say to use -h) on FreeBSD -- 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #0: Mon Jan  3 02:17:43 PST 2005


SWAPON(8)               FreeBSD System Manager's Manual              SWAPON(8)

     swapon, swapoff, swapctl -- specify devices for paging and swapping
     Swap information can be generated using the swapinfo(8) utility, pstat
     -s, or swapctl -l.  The swapctl utility has the following options for
     listing swap:

     -h      Output values in megabytes.
     The swapon utility appeared in 4.0BSD.  The swapoff and swapctl utilities
     appeared in FreeBSD 5.1.

FreeBSD 5.3                    December 28, 2002                   FreeBSD 5.3


-h Is not a valid option of swapinfo, as demonstrated here:

# swapinfo -h
swapinfo: illegal option -- h
usage: swapinfo [-k] [-M core [-N system]]
# swapinfo -k
Device          1K-blocks     Used    Avail Capacity
/dev/ad0s1b       1572864    31132  1541732     2%

# man swapon, search for "-h" i.e. if your viwer is more, type "/" and then "-h" followed by a return.


More information about the freebsd-bugs mailing list