use utmp.h UT_ defines
[unix-history] / usr / src / usr.bin / man / man.1
CommitLineData
7400223d
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
85f8dd5b 5.\" @(#)man.1 6.7 (Berkeley) %G%
7400223d 6.\"
b896fc7a 7.TH MAN 1 ""
7400223d
KM
8.UC 4
9.SH NAME
79bea8b8 10man \- print out the manual
7400223d
KM
11.SH SYNOPSIS
12.br
13.B man
7400223d
KM
14[
15.B \-
16] [
85f8dd5b
KB
17.B -a
18] [
b896fc7a
KM
19.B \-M
20.I path
21] [
7400223d
KM
22section
23]
24title ...
25.SH DESCRIPTION
79bea8b8
KB
26\fIMan\fP is the program which provides on-line access to the UNIX manual.
27If a \fIsection\fP specifier is given, \fIman\fP looks in that section of
28the manual for the given \fItitle\fP(s). \fISection\fP is either an Arabic
29section number (``3'' for example), or one of the words ``local'', ``new,''
30or ``old''. (The abbreviations ``l'', ``n'', and ``o'' are also allowed.)
31If \fIsection\fP is omitted, \fIman\fP searches all sections of the manual,
32giving preference to commands over library subroutines, and displays the
85f8dd5b
KB
33first manual page it finds, if any. If the \fI-a\fP option is supplied,
34\fIman\fP displays all applicable manual pages.
7400223d 35.PP
79bea8b8
KB
36Normally \fIman\fP checks in standard locations (/usr/man and /usr/local/man)
37for manual information. This can be changed by supplying a search path (a
38la the Bourne shell) with the \fB-M\fP flag. The search path is a colon
39(``:'') separated list of directories in which \fIman\fP expects to find
40the standard manual subdirectories. This search path can also be set with
41the environmental variable \fIMANPATH\fP.
7400223d 42.PP
79bea8b8
KB
43Since some manual pages are intended for use only on certain machines,
44\fIman\fP only searches those directories applicable to the current
45machine. \fIMan\fP's determination of the current machine type can
46be overridden by setting the environmental variable \fIMACHINE\fP.
7400223d 47.PP
79bea8b8
KB
48If the standard output is a teletype, and the \fB-\fP flag is not provided,
49\fIman\fP uses \fImore\fP(1), or the pager provided by the environmental
50variable \fIPAGER\fP, to display the manual page.
09683da9 51.PP
79bea8b8
KB
52The FORTRAN version of section 3 of the manual may be specified by supplying
53\fIman\fP with the \fIsection\fP ``3f''. Also, a specific section of the
54local manual may be specified by appending a number to the \fIsection\fP,
55i.e. ``l5'' would indicate section 5 of the local manual.
7400223d 56.SH FILES
b896fc7a 57.nf
79bea8b8 58.ta \w'/usr/local/man/man?/* 'u
b896fc7a 59/usr/man standard manual area
79bea8b8
KB
60/usr/man/cat?/* directories containing standard manual pages
61/usr/local/man/cat?/* directories containing local manual pages
62/usr/src/man directories containing unformatted manual pages
b896fc7a 63.fi
7400223d 64.SH SEE\ ALSO
79bea8b8 65apropos(1), more(1), whatis(1), whereis(1)
7400223d 66.SH BUGS
79bea8b8
KB
67The manual is supposed to be reproducible either on the
68phototypesetter or on a typewriter, however, on a typewriter,
69some information is necessarily lost.