need to change iphlen earlier; icmp_error needs original ip_len; cleanups
[unix-history] / usr / src / usr.bin / man / man.1
CommitLineData
ef1f0408
CL
1.\" Copyright (c) 1989, 1990 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
7400223d 4.\"
a201b3c4 5.\" @(#)man.1 6.11 (Berkeley) %G%
0076013a 6.\"
ef1f0408 7.TH MAN 1 "%Q"
7400223d
KM
8.UC 4
9.SH NAME
0076013a 10man \- display the on-line manual pages
7400223d 11.SH SYNOPSIS
0076013a
KB
12.nf
13.ft B
011519cd 14man [ -acw ] [ -M path ] [ -m path ] [ section ] name ...
0076013a
KB
15.ft R
16.fi
7400223d 17.SH DESCRIPTION
0076013a 18.I Man
011519cd
KB
19displays the UNIX manual pages entitled
20.IR name .
7400223d 21.PP
0076013a
KB
22The options are as follows:
23.TP
011519cd 24a
0076013a 25Display all of the manual pages for a specified
011519cd
KB
26.I section
27and
28.I name
29combination.
0076013a
KB
30(Normally, only the first manual page found is displayed.)
31.TP
011519cd 32c
0076013a 33Copy the manual page to the standard output instead of using
011519cd 34.IR more (1)
0076013a
KB
35to paginate it.
36This is done by default if the standard output is not a terminal device.
37.TP
011519cd
KB
38M
39Override the list of standard directories which
0076013a
KB
40.I man
41searches for manual pages.
42The supplied
43.I path
44must be a colon (``:'') separated list of directories.
ef1f0408 45This search path may also be set using the environment variable
0076013a 46.IR MANPATH .
a201b3c4
TH
47The subdirectories to be searched as well as their search order
48is specified by the ``_subdir'' line in the
49.I man
50configuration file.
0076013a 51.TP
011519cd
KB
52m
53Augment the list of standard directories which
0076013a
KB
54.I man
55searches for manual pages.
56The supplied
57.I path
58must be a colon (``:'') separated list of directories.
59These directories will be searched before the standard directories or
011519cd 60the directories specified using the
0076013a
KB
61.I M
62option or the
63.I MANPATH
ef1f0408 64environment variable.
0076013a
KB
65.TP
66.I w
011519cd 67List the pathnames of the manual pages which
0076013a
KB
68.I man
69would display for the specified
011519cd
KB
70.I section
71and
72.I name
73combination.
09683da9 74.PP
011519cd
KB
75The optional
76.I section
77restricts the directories that
78.I man
79will search.
80The
0076013a 81.I man
011519cd 82configuration file (see
a201b3c4 83.IR man_conf (5))
011519cd
KB
84specifies the possible
85.I section
86values that are currently available.
87If only a single argument is specified or if the first argument is
88not a valid section,
0076013a 89.I man
011519cd 90assumes that the argument is the name of a manual page to be displayed.
ef1f0408 91.SH ENVIRONMENT
0076013a 92.TP
0076013a
KB
93MACHINE
94As some manual pages are intended only for use on certain architectures,
95.I man
011519cd 96searches certain directories applicable to the current machine.
0076013a
KB
97.I Man's
98determination of the current machine type may be overridden by setting
ef1f0408 99the environment variable MACHINE to the name of an architecture (see
011519cd 100.IR machine (1)).
0076013a
KB
101Machine specific areas are checked before general areas.
102.TP
011519cd 103MANPATH
0076013a
KB
104The standard search path used by
105.I man
ef1f0408 106may be overridden by specifying a path in the MANPATH environment
011519cd 107variable.
0076013a 108The format of the path is a colon (``:'') separated list of directories.
a201b3c4
TH
109The subdirectories to be searched as well as their search order
110is specified by the ``_subdir'' line in the
111.I man
112configuration file.
0076013a 113.TP
0076013a 114PAGER
ef1f0408 115Any value of the environment variable
0076013a
KB
116.I PAGER
117will be used instead of the standard pagination program
118.IR more (1).
7400223d 119.SH FILES
a201b3c4
TH
120/etc/man.conf man configuration file (see
121.IR man_conf (5))
0076013a 122.SH "SEE ALSO"
a201b3c4 123apropos(1), machine(1), whatis(1), whereis(1), man_conf(5)
7400223d 124.SH BUGS
0076013a
KB
125The on-line manual pages are, by necessity, forgiving toward stupid
126display devices, causing some manual pages to not be as good as their
127typeset counterparts.