1 .\" $NetBSD: man.1,v 1.26 2013/07/18 03:40:31 uwe 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
62 utility displays the manual pages named on the command line.
63 Its options are as follows:
64 .Bl -tag -width indent
66 Display all of the man pages for a specified
71 (Normally, only the first man page found is displayed.)
75 instead of the default configuration file.
76 This permits users to configure their own man environment.
79 for a description of the contents of this file.
81 Copy the man page to the standard output instead of using
84 This is done by default if the standard output is not a terminal device.
88 lines of the requested man pages.
89 For commands, this is typically the command line usage information.
90 For library functions, this usually contains the required include
91 files and function prototypes.
93 Display the header lines for any man pages matching
98 Override the list of standard directories which
100 searches for man pages.
105 separated list of directories.
106 This search path may also be set using the environment variable
108 The subdirectories to be searched, and their search order,
115 Augment the list of standard directories which
117 searches for man pages.
122 separated list of directories.
123 These directories will be searched before the standard directories or
124 the directories specified using the
128 environment variable.
129 The subdirectories to be searched, and their search order,
136 Print the search path for the manual pages.
138 Restrict the directories that
140 will search to the specified section.
143 configuration file (see
145 specifies the possible
147 values that are currently available.
149 Display only man pages that have the specified string in the directory
150 part of their filenames.
151 This allows the man page search process criteria to be
152 narrowed without having to change the MANPATH or
156 List the pathnames of the man pages which
158 would display for the specified
167 option is not specified,
168 there is more than one argument,
171 option is not used, and the first argument is a valid section, then that
172 argument will be used as if specified by the
178 is given with a full or relative path then
180 interprets it as a file specification, so that you can do
185 .Cm /cd/foo/bar.1.gz .
187 .Bl -tag -width MANPATHX
189 As some man pages are intended only for specific architectures,
191 searches any subdirectories,
192 with the same name as the current architecture,
193 in every directory which it searches.
194 Machine specific areas are checked before general areas.
195 The current machine type may be overridden by setting the environment
198 to the name of a specific architecture.
200 The standard search path used by
202 may be overridden by specifying a path in the
204 environment variable.
205 The format of the path is a colon
207 separated list of directories.
208 The subdirectories to be searched as well as their search order
215 The pagination command used for writing the output.
218 environment variable is null or not set, the standard pagination program
223 .Bl -hang -width /etc/man.conf -compact
225 default man configuration file.
239 The on-line man pages are, by necessity, forgiving toward stupid
240 display devices, causing a few man pages to be not as nicely formatted
241 as their typeset counterparts.