1 .\" $Id: man.1,v 1.4 2014/08/30 18:08:10 schwarze Exp $
2 .\" $OpenBSD: man.1,v 1.55 2014/04/03 06:15:18 jmc Exp $
4 .\" Copyright (c) 1989, 1990, 1993
5 .\" The Regents of the University of California. All rights reserved.
6 .\" Copyright (c) 2003, 2007, 2008, 2014 Jason McIntyre <jmc@openbsd.org>
7 .\" Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
17 .\" 3. Neither the name of the University nor the names of its contributors
18 .\" may be used to endorse or promote products derived from this software
19 .\" without specific prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .\" @(#)man.1 8.2 (Berkeley) 1/2/94
35 .Dd $Mdocdate: August 30 2014 $
40 .Nd display manual pages
47 .Op Fl S Ar subsection
58 Pages may be selected according to
65 The options are as follows:
68 Display all of the manual pages for a specified
73 Normally, only the first manual page found is displayed.
77 instead of the default configuration file.
78 This permits users to configure their own manual environment.
81 for a description of the contents of this file.
83 Copy the manual page to the standard output instead of using
86 This is done by default if the standard output is not a terminal device.
92 in manual page names and displays the header lines from all matching pages.
93 The search is case insensitive and matches whole words only.
94 This overrides any earlier
102 lines of the requested manual pages.
108 an expression can be provided using the syntax described in the
111 By default, it displays the header lines of all matching pages.
112 This overrides any earlier
123 arguments are interpreted as filenames.
124 No search is done and
131 This overrides any earlier
138 Override the list of standard directories which
140 searches for manual pages.
145 separated list of directories.
146 This search path may also be set using the environment variable
148 The subdirectories to be searched, and their search order,
155 Augment the list of standard directories which
157 searches for manual pages.
162 separated list of directories.
163 These directories will be searched before the standard directories or
164 the directories specified using the
168 environment variable.
169 The subdirectories to be searched, and their search order,
175 .It Fl S Ar subsection
176 Restricts the directories that
178 will search to those of a specific
184 By default manual pages for all architectures are installed.
185 Therefore this option can be used to view pages for one
186 architecture whilst using another.
188 This option overrides the
190 environment variable.
195 Restricts the directories that
197 will search to a specific section.
198 The currently available sections are:
200 .Bl -tag -width "localXXX" -offset indent -compact
203 .Pq tools and utilities .
205 System calls and error numbers.
209 Fortran programmer's reference guide.
212 programmer's reference guide.
222 System maintenance and operation commands.
240 specifies the possible
242 values, and their search order.
243 Additional sections may be specified.
245 Print version and exit.
247 List the pathnames of the manual pages which
249 would display for the specified
258 utility also supports the options
264 Guidelines for writing
265 man pages can be found in
268 If both a formatted and an unformatted version of the same manual page,
273 exist in the same directory, and at least one of them is selected,
274 only the newer one is used.
279 options are specified, both file names are printed.
281 .Bl -tag -width MANPATHX
283 As some manual pages are intended only for specific architectures,
285 searches any subdirectories,
286 with the same name as the current architecture,
287 in every directory which it searches.
288 Machine specific areas are checked before general areas.
289 The current machine type may be overridden by setting the environment
292 to the name of a specific architecture,
299 Any non-empty value of the environment variable
301 will be used instead of the standard pagination program,
304 The standard search path used by
306 may be overridden by specifying a path in the
310 The format of the path is a colon
312 separated list of directories.
313 The subdirectories to be searched, as well as their search order,
320 Specifies the pagination program to use when
323 If neither PAGER nor MANPAGER is defined,
324 .Pa /usr/bin/more Fl s
328 .Bl -tag -width /etc/man.conf -compact
330 default man configuration file
352 utility is compliant with the
358 as well as the environment variables
363 are extensions to that specification.
367 command first appeared in
372 option first appeared in