xref: /csrg-svn/usr.bin/man/man.1 (revision 65281)
162102Sbostic.\" Copyright (c) 1989, 1990, 1993
262102Sbostic.\"	The Regents of the University of California.  All rights reserved.
319207Smckusick.\"
448283Sbostic.\" %sccs.include.redist.roff%
519207Smckusick.\"
6*65281Sbostic.\"     @(#)man.1	8.2 (Berkeley) 01/02/94
748283Sbostic.\"
848838Scael.Dd
948838Scael.Dt MAN 1
1048838Scael.Os BSD 4
1148838Scael.Sh NAME
1248838Scael.Nm man
1348838Scael.Nd display the on-line manual pages
1448838Scael.Sh SYNOPSIS
1548838Scael.Nm man
1648838Scael.Op Fl achw
17*65281Sbostic.Op Fl C Ar file
1848838Scael.Op Fl M Ar path
1948838Scael.Op Fl m Ar path
2048838Scael.Op Ar section
2148838Scael.Ar name Ar ...
2248838Scael.Sh DESCRIPTION
2348838ScaelThe
2448838Scael.Nm man
2548838Scaelutility
2648838Scaeldisplays the
2748838Scael.Bx
2848838Scaelmanual pages entitled
2948838Scael.Ar name .
3048838Scael.Pp
3140390SbosticThe options are as follows:
3248838Scael.Bl -tag -width indent
3348838Scael.It Fl a
3440390SbosticDisplay all of the manual pages for a specified
3548838Scael.Ar section
3642402Sbosticand
3748838Scael.Ar name
3842402Sbosticcombination.
3940390Sbostic(Normally, only the first manual page found is displayed.)
40*65281Sbostic.It Fl C
41*65281SbosticUse the specified
42*65281Sbostic.Ar file
43*65281Sbosticinstead of the default configuration file.
44*65281SbosticThis permits users to configure their own manual environment.
45*65281SbosticSee
46*65281Sbostic.Xr man.conf 5
47*65281Sbosticfor a description of the contents of this file.
4848838Scael.It Fl c
4940390SbosticCopy the manual page to the standard output instead of using
5048838Scael.Xr more 1
5140390Sbosticto paginate it.
5240390SbosticThis is done by default if the standard output is not a terminal device.
5348838Scael.It Fl h
5448838ScaelDisplay only the
5548838Scael.Dq Tn SYNOPSIS
5648838Scaellines of the requested manual pages.
5748838Scael.It Fl M
5842402SbosticOverride the list of standard directories which
5948838Scael.Nm man
6040390Sbosticsearches for manual pages.
6140390SbosticThe supplied
6248838Scael.Ar path
6340390Sbosticmust be a colon (``:'') separated list of directories.
6443726ScaelThis search path may also be set using the environment variable
6548838Scael.Ev MANPATH .
66*65281SbosticThe subdirectories to be searched, and their search order,
6744418Strentis specified by the ``_subdir'' line in the
6848838Scael.Nm man
6944418Strentconfiguration file.
7048838Scael.It Fl m
7142402SbosticAugment the list of standard directories which
7248838Scael.Nm man
7340390Sbosticsearches for manual pages.
7440390SbosticThe supplied
7548838Scael.Ar path
7640390Sbosticmust be a colon (``:'') separated list of directories.
7740390SbosticThese directories will be searched before the standard directories or
7842402Sbosticthe directories specified using the
7948838Scael.Fl M
8040390Sbosticoption or the
8148838Scael.Ev MANPATH
8243726Scaelenvironment variable.
83*65281SbosticThe subdirectories to be searched, and their search order,
84*65281Sbosticis specified by the ``_subdir'' line in the
85*65281Sbostic.Nm man
86*65281Sbosticconfiguration file.
8748838Scael.It Fl w
8842402SbosticList the pathnames of the manual pages which
8948838Scael.Nm man
9040390Sbosticwould display for the specified
9148838Scael.Ar section
9242402Sbosticand
9348838Scael.Ar name
9442402Sbosticcombination.
9548838Scael.El
9648838Scael.Pp
9742402SbosticThe optional
9848838Scael.Ar section
99*65281Sbosticargument restricts the directories that
10048838Scael.Nm man
10142402Sbosticwill search.
10242402SbosticThe
10348838Scael.Nm man
10442402Sbosticconfiguration file (see
105*65281Sbostic.Xr man.conf 5 )
10642402Sbosticspecifies the possible
10748838Scael.Ar section
10842402Sbosticvalues that are currently available.
10942402SbosticIf only a single argument is specified or if the first argument is
11042402Sbosticnot a valid section,
11148838Scael.Nm man
11242402Sbosticassumes that the argument is the name of a manual page to be displayed.
11348838Scael.Sh ENVIRONMENT
11448838Scael.Bl -tag -width MANPATHX
11548838Scael.It Ev MACHINE
116*65281SbosticAs some manual pages are intended only for specific architectures,
11748838Scael.Nm man
118*65281Sbosticsearches any subdirectories,
119*65281Sbosticwith the same name as the current architecture,
120*65281Sbosticin every directory which it searches.
121*65281SbosticMachine specific areas are checked before general areas.
122*65281SbosticThe current machine type may be overridden by setting the environment
123*65281Sbosticvariable
12448838Scael.Ev MACHINE
125*65281Sbosticto the name of a specific architecture.
12648838Scael.It Ev MANPATH
12740390SbosticThe standard search path used by
12848838Scael.Nm man
12948838Scaelmay be overridden by specifying a path in the
13048838Scael.Ev MANPATH
13148838Scaelenvironment
13242402Sbosticvariable.
13340390SbosticThe format of the path is a colon (``:'') separated list of directories.
13444418StrentThe subdirectories to be searched as well as their search order
13544418Strentis specified by the ``_subdir'' line in the
13648838Scael.Nm man
13744418Strentconfiguration file.
13848838Scael.It Ev PAGER
13943726ScaelAny value of the environment variable
14048838Scael.Ev PAGER
141*65281Sbosticwill be used instead of the standard pagination program,
14248838Scael.Xr more 1 .
14348838Scael.El
14448838Scael.Sh FILES
14548838Scael.Bl -tag -width /etc/man.conf -compact
14648838Scael.It Pa /etc/man.conf
147*65281Sbosticdefault man configuration file.
14848838Scael.El
14948838Scael.Sh SEE ALSO
15048838Scael.Xr apropos 1 ,
15148838Scael.Xr whatis 1 ,
15248838Scael.Xr whereis 1 ,
153*65281Sbostic.Xr man.conf 5
15448838Scael.Sh BUGS
15540390SbosticThe on-line manual pages are, by necessity, forgiving toward stupid
156*65281Sbosticdisplay devices, causing a few manual pages to not as nicely formatted
157*65281Sbosticas their typeset counterparts.
15848838Scael.Sh HISTORY
15948838ScaelA
16048838Scael.Nm
16148838Scaelcommand appeared in
16248838Scael.At v6 .
163