3 .\" Copyright (c) 1990, 1991, John W. Eaton.
5 .\" You may distribute under the terms of the GNU General Public
6 .\" License as specified in the README file that comes with the man 1.0
10 .\" jwe@che.utexas.edu
11 .\" Department of Chemical Engineering
12 .\" The University of Texas at Austin
13 .\" Austin, Texas 78712
15 .\" $FreeBSD: src/gnu/usr.bin/man/man/man.man,v 1.10.2.8 2002/06/25 00:02:55 eric Exp $
22 .Nd format and display the on-line manual pages
35 formats and displays the on-line manual pages.
36 This version knows about the
40 environment variables, so you can have
41 your own set(s) of personal man pages and choose whatever program you
42 like to display the formatted pages.
47 only looks in that section of the manual.
48 You may also specify the order to search the sections for entries and
49 which preprocessors to run on the source files via command line options
50 or environment variables.
51 If enabled by the system administrator, formatted man pages will also
52 be compressed with the
54 command to save space.
60 treats it as a file name.
62 The options are as follows:
65 Specify an alternate manpath.
70 (which is built into the
73 to determine the path to search.
74 This option overrides the
78 Specify which pager to use.
83 This option overrides the
87 List is a colon separated list of manual sections to search.
89 .Dq 1:8:2:3:4:5:6:7:9 .
90 This option overrides the
96 will exit after displaying the first manual page it
98 Using this option forces
100 to display all the manual pages
105 Don't actually display the man pages, but do print gobs of debugging
111 Print a help message and exit.
116 As some manual pages are intended only for specific architectures,
118 searches any subdirectories,
119 with the same name as the current architecture,
120 in every directory which it searches.
121 Machine specific areas are checked before general areas.
122 The current machine type may be overridden using this option
123 or by setting the environment variable
125 to the name of a specific architecture.
126 This option overrides the
128 environment variable.
130 Look for original, non-localized manpages only.
134 searches for a localized manpage
135 in a set of locale subdirectories of each
139 Locale name is taken from the first of three environment variables
140 with a nonempty value:
141 .Ev LC_ALL , LC_CTYPE ,
144 in the specified order.
146 If the value could not be determined, or is not a valid locale name,
147 then only non-localized manpage will be looked up.
151 will search in the following subdirectories, in the order of precedence:
153 .Bl -item -offset indent -compact
156 .Pa <lang> _ <country> . <charset>
158 .Pa <lang> . <charset>
168 will search in the following subdirectories of the
172 .Bl -item -offset indent -compact
174 .Pa /usr/share/man/de_DE.ISO8859-1
176 .Pa /usr/share/man/de.ISO8859-1
178 .Pa /usr/share/man/en.ISO8859-1
182 if the search of localized manpage fails,
183 it will be looked up in the default
187 Specify the sequence of preprocessors to run before nroff or troff.
188 Not all installations will have a full set of preprocessors.
189 Some of the preprocessors and the letters used to designate them are:
190 eqn (e), grap (g), pic (p), tbl (t), vgrind (v), refer (r).
191 This option overrides the
193 environment variable.
196 .Nm /usr/bin/groff -S -man
197 to format the manual page, passing the output to stdout.
199 .Nm /usr/bin/groff -S -man
200 may need to be passed through some filter or another before being
203 Don't actually display the man pages, but do print the location(s) of
204 the files that would be formatted or displayed.
207 .Bl -tag -width MANROFFSEQ
208 .It Ev LC_ALL , LC_CTYPE , LANG
209 These variables specify the preferred language for manual pages.
216 is set, its value is used to override the current machine type
217 when searching machine specific subdirectories.
221 is set, its value is used as the path to search for manual pages.
225 is set, its value is used to determine the set of preprocessors run
230 By default, pages are passed through the table preprocessor before
235 is set, its value is used to determine which manual sections to search.
239 is set, its value is used as the name of the program to use to display
247 Normally, to look at the relevant manpage information for getopt,
252 However, when referring to a specific section of the manual,
269 option only works if the
271 program is installed.