1 .\" $Id: man.1,v 1.29 2017/05/17 23:23:00 schwarze Exp $
3 .\" Copyright (c) 1989, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
5 .\" Copyright (c) 2003, 2007, 2008, 2014 Jason McIntyre <jmc@openbsd.org>
6 .\" Copyright (c) 2010, 2011, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)man.1 8.2 (Berkeley) 1/2/94
34 .Dd $Mdocdate: May 17 2017 $
39 .Nd display manual pages
46 .Op Fl S Ar subsection
47 .Op Oo Fl s Oc Ar section
56 Pages may be selected according to
63 The options are as follows:
66 Display all matching manual pages.
67 Normally, only the first page found is displayed.
71 instead of the default configuration file.
72 This permits users to configure their own manual environment.
75 for a description of the contents of this file.
77 Copy the manual page to the standard output instead of using
80 This is done by default if the standard output is not a terminal device.
86 in manual page names and displays the header lines from all matching pages.
87 The search is case insensitive and matches whole words only.
89 Display only the SYNOPSIS lines of the requested manual pages.
99 an expression can be provided using the syntax described in the
102 By default, it displays the header lines of all matching pages.
109 arguments are interpreted as filenames.
110 No search is done and
119 Override the list of standard directories which
121 searches for manual pages.
126 separated list of directories.
127 This search path may also be set using the environment variable
130 Augment the list of standard directories which
132 searches for manual pages.
137 separated list of directories.
138 These directories will be searched before the standard directories or
139 the directories specified using the
143 environment variable.
144 .It Fl S Ar subsection
145 Only show pages for the specified
151 By default manual pages for all architectures are installed.
152 Therefore this option can be used to view pages for one
153 architecture whilst using another.
155 This option overrides the
157 environment variable.
158 .It Oo Fl s Oc Ar section
159 Only select manuals from the specified
161 The currently available sections are:
163 .Bl -tag -width "localXXX" -offset indent -compact
166 .Pq tools and utilities .
168 System calls and error numbers.
173 programmer's reference guide.
181 Miscellaneous information.
183 System maintenance and operation commands.
188 If not specified and a match is found in more than one section,
189 the first match is selected from the following list:
190 1, 8, 6, 2, 3, 5, 7, 4, 9, 3p.
192 List the pathnames of all matching manual pages instead of displaying
198 are also supported and are documented in
202 are mutually exclusive and override each other.
204 Guidelines for writing
205 man pages can be found in
208 If both a formatted and an unformatted version of the same manual page,
213 exist in the same directory, only the unformatted version is used.
215 .Bl -tag -width MANPATHX
217 As some manual pages are intended only for specific architectures,
219 searches any subdirectories,
220 with the same name as the current architecture,
221 in every directory which it searches.
222 Machine specific areas are checked before general areas.
223 The current machine type may be overridden by setting the environment
226 to the name of a specific architecture,
233 Any non-empty value of the environment variable
235 is used instead of the standard pagination program,
239 is used, the interactive
241 command can be used to go to the definitions of various terms, for
242 example command line options, command modifiers, internal commands,
243 environment variables, function names, preprocessor macros,
245 values, and some other emphasized words.
246 Some terms may have defining text at more than one place.
253 can be used to move to the next and to the previous place providing
254 information about the term last searched for with
257 The standard search path used by
259 may be changed by specifying a path in the
261 environment variable.
262 The format of the path is a colon
264 separated list of directories.
265 Invalid paths are ignored.
274 begins with a colon, it is appended to the default list;
275 if it ends with a colon, it is prepended to the default list;
276 or if it contains two adjacent colons,
277 the standard search path is inserted between the colons.
278 If none of these conditions are met, it overrides the
279 standard search path.
281 Specifies the pagination program to use when
284 If neither PAGER nor MANPAGER is defined,
295 .Bl -tag -width /etc/man.conf -compact
297 default man configuration file
321 utility is compliant with the
326 .Op Fl aCcfhIKlMmOSsTWw ,
327 as well as the environment variables
332 are extensions to that specification.
336 command first appeared in
341 option first appeared in
381 option first appeared in
383 and was also added in