1 .\" $Id: man.1,v 1.9 2014/12/18 21:11:46 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 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: December 18 2014 $
39 .Nd display manual pages
44 .Op Fl I Cm os Ns = Ns Ar name
48 .Op Fl O Ar option Ns = Ns Ar value
49 .Op Fl S Ar subsection
62 Pages may be selected according to
69 The options are as follows:
72 Display all of the manual pages for a specified
77 Normally, only the first manual page found is displayed.
81 instead of the default configuration file.
82 This permits users to configure their own manual environment.
85 for a description of the contents of this file.
87 Copy the manual page to the standard output instead of using
90 This is done by default if the standard output is not a terminal device.
96 in manual page names and displays the header lines from all matching pages.
97 The search is case insensitive and matches whole words only.
98 This overrides any earlier
103 .It Fl I Cm os Ns = Ns Ar name
104 Override the default operating system
111 Display only the SYNOPSIS lines of the requested manual pages.
117 Specify the input encoding.
125 By default, the encoding is automatically detected as described in the
133 an expression can be provided using the syntax described in the
136 By default, it displays the header lines of all matching pages.
137 This overrides any earlier
148 arguments are interpreted as filenames.
149 No search is done and
156 This overrides any earlier
163 Override the list of standard directories which
165 searches for manual pages.
170 separated list of directories.
171 This search path may also be set using the environment variable
173 The subdirectories to be searched, and their search order,
180 Augment the list of standard directories which
182 searches for manual pages.
187 separated list of directories.
188 These directories will be searched before the standard directories or
189 the directories specified using the
193 environment variable.
194 The subdirectories to be searched, and their search order,
200 .It Fl O Ar option Ns = Ns Ar value
201 Comma-separated output options.
202 For each output format, the available options are described in the
205 .It Fl S Ar subsection
206 Restricts the directories that
208 will search to those of a specific
214 By default manual pages for all architectures are installed.
215 Therefore this option can be used to view pages for one
216 architecture whilst using another.
218 This option overrides the
220 environment variable.
225 Restricts the directories that
227 will search to a specific section.
228 The currently available sections are:
230 .Bl -tag -width "localXXX" -offset indent -compact
233 .Pq tools and utilities .
235 System calls and error numbers.
239 Fortran programmer's reference guide.
242 programmer's reference guide.
252 System maintenance and operation commands.
270 specifies the possible
272 values, and their search order.
273 Additional sections may be specified.
275 Select the output format.
278 The other output modes
292 Print version and exit.
294 Specify the minimum message
296 to be reported on the standard error output and to affect the exit status.
313 List the pathnames of the manual pages which
315 would display for the specified
322 Guidelines for writing
323 man pages can be found in
326 If both a formatted and an unformatted version of the same manual page,
331 exist in the same directory, and at least one of them is selected,
332 only the newer one is used.
337 options are specified, both file names are printed.
339 .Bl -tag -width MANPATHX
341 As some manual pages are intended only for specific architectures,
343 searches any subdirectories,
344 with the same name as the current architecture,
345 in every directory which it searches.
346 Machine specific areas are checked before general areas.
347 The current machine type may be overridden by setting the environment
350 to the name of a specific architecture,
357 Any non-empty value of the environment variable
359 will be used instead of the standard pagination program,
362 The standard search path used by
364 may be overridden by specifying a path in the
368 The format of the path is a colon
370 separated list of directories.
371 The subdirectories to be searched, as well as their search order,
378 Specifies the pagination program to use when
381 If neither PAGER nor MANPAGER is defined,
382 .Pa /usr/bin/more Fl s
386 .Bl -tag -width /etc/man.conf -compact
388 default man configuration file
410 utility is compliant with the
415 .Op Fl aCcfhIKlMmOSsTVWw ,
416 as well as the environment variables
421 are extensions to that specification.
425 command first appeared in
430 option first appeared in