1 .\" $NetBSD: man.1,v 1.20 2006/04/13 21:10:44 wiz Exp $
3 .\" Copyright (c) 1989, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)man.1 8.2 (Berkeley) 1/2/94
37 .Nd display the on-line manual pages
38 .Pq aka Dq Em man pages
41 .Oo Fl acw Ns \&| Ns Fl h Oc
60 utility displays the manual pages named on the command line.
61 Its options are as follows:
62 .Bl -tag -width indent
64 Display all of the man pages for a specified
69 (Normally, only the first man page found is displayed.)
73 instead of the default configuration file.
74 This permits users to configure their own man environment.
77 for a description of the contents of this file.
79 Copy the man page to the standard output instead of using
82 This is done by default if the standard output is not a terminal device.
86 lines of the requested man pages.
87 For commands, this is typically the command line usage information.
88 For library functions, this usually contains the required include
89 files and function prototypes.
91 Display the header lines for any man pages matching
96 Override the list of standard directories which
98 searches for man pages.
103 separated list of directories.
104 This search path may also be set using the environment variable
106 The subdirectories to be searched, and their search order,
113 Augment the list of standard directories which
115 searches for man pages.
120 separated list of directories.
121 These directories will be searched before the standard directories or
122 the directories specified using the
126 environment variable.
127 The subdirectories to be searched, and their search order,
134 Restrict the directories that
136 will search to the specified section.
139 configuration file (see
141 specifies the possible
143 values that are currently available.
145 Display only man pages that have the specified string in the directory
146 part of their filenames.
147 This allows the man page search process criteria to be
148 narrowed without having to change the MANPATH or
152 List the pathnames of the man pages which
154 would display for the specified
163 option is not specified,
164 there is more than one argument,
167 option is not used, and the first argument is a valid section, then that
168 argument will be used as if specified by the
174 is given with a full or relative path then
176 interprets it as a file specification, so that you can do
181 .Cm /cd/foo/bar.1.gz .
183 .Bl -tag -width MANPATHX
185 As some man pages are intended only for specific architectures,
187 searches any subdirectories,
188 with the same name as the current architecture,
189 in every directory which it searches.
190 Machine specific areas are checked before general areas.
191 The current machine type may be overridden by setting the environment
194 to the name of a specific architecture.
196 The standard search path used by
198 may be overridden by specifying a path in the
202 The format of the path is a colon
204 separated list of directories.
205 The subdirectories to be searched as well as their search order
212 The pagination command used for writing the output.
215 environment variable is null or not set, the standard pagination program
220 .Bl -hang -width /etc/man.conf -compact
222 default man configuration file.
223 .It Pa /usr/{share,X11R6,pkg,local}/man/whatis.db
224 standard whatis/apropos database search path,
239 .\"and is expected to conform to
242 The on-line man pages are, by necessity, forgiving toward stupid
243 display devices, causing a few man pages to be not as nicely formatted
244 as their typeset counterparts.