Deleted Added
sdiff udiff text old ( 275432 ) new ( 279527 )
full compact
1.\" $Id: man.1,v 1.13 2015/02/16 16:23:54 schwarze Exp $
2.\"
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, 2015 Ingo Schwarze <schwarze@openbsd.org>
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
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

--- 11 unchanged lines hidden (view full) ---

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
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)man.1 8.2 (Berkeley) 1/2/94
33.\"
34.Dd $Mdocdate: February 16 2015 $
35.Dt MAN 1
36.Os
37.Sh NAME
38.Nm man
39.Nd display manual pages
40.Sh SYNOPSIS
41.Nm man
42.Op Fl acfhklw
43.Op Fl C Ar file
44.Op Fl I Cm os Ns = Ns Ar name
45.Op Fl K Ar encoding
46.Op Fl M Ar path
47.Op Fl m Ar path
48.Op Fl O Ar option Ns = Ns Ar value
49.Op Fl S Ar subsection
50.Op Fl s Ar section
51.Op Fl T Ar output
52.Op Fl W Ar level
53.Op Ar section
54.Ar name ...
55.Sh DESCRIPTION
56The
57.Nm
58utility
59displays the
60manual pages entitled

--- 34 unchanged lines hidden (view full) ---

95.Ar name
96in manual page names and displays the header lines from all matching pages.
97The search is case insensitive and matches whole words only.
98This overrides any earlier
99.Fl k
100and
101.Fl l
102options.
103.It Fl I Cm os Ns = Ns Ar name
104Override the default operating system
105.Ar name
106for the
107.Xr mdoc 7
108.Ic \&Os
109and for the
110.Xr man 7
111.Ic \&TH
112macro.
113.It Fl h
114Display only the SYNOPSIS lines of the requested manual pages.
115Implies
116.Fl a
117and
118.Fl c .
119.It Fl K Ar encoding
120Specify the input encoding.
121The supported
122.Ar encoding
123arguments are
124.Cm us-ascii ,
125.Cm iso-8859-1 ,
126and
127.Cm utf-8 .
128By default, the encoding is automatically detected as described in the
129.Xr mandoc 1
130manual.
131.It Fl k
132A synonym for
133.Xr apropos 1 .
134Instead of
135.Ar name ,
136an expression can be provided using the syntax described in the
137.Xr apropos 1
138manual.

--- 56 unchanged lines hidden (view full) ---

195.Ev MANPATH
196environment variable.
197The subdirectories to be searched, and their search order,
198are specified by the
199.Dq _subdir
200line in the
201.Nm
202configuration file.
203.It Fl O Ar option Ns = Ns Ar value
204Comma-separated output options.
205For each output format, the available options are described in the
206.Xr mandoc 1
207manual.
208.It Fl S Ar subsection
209Restricts the directories that
210.Nm
211will search to those of a specific
212.Xr machine 1
213architecture.
214.Ar subsection
215is case insensitive.

--- 53 unchanged lines hidden (view full) ---

269The
270.Nm
271configuration file,
272.Xr man.conf 5 ,
273specifies the possible
274.Ar section
275values, and their search order.
276Additional sections may be specified.
277.It Fl T Ar output
278Select the output format.
279The default is
280.Cm locale .
281The other output modes
282.Cm ascii ,
283.Cm html ,
284.Cm lint ,
285.Cm man ,
286.Cm pdf ,
287.Cm ps ,
288.Cm tree ,
289and
290.Cm utf8
291are described in the
292.Xr mandoc 1
293manual.
294.It Fl W Ar level
295Specify the minimum message
296.Ar level
297to be reported on the standard error output and to affect the exit status.
298The
299.Ar level
300can be
301.Cm warning ,
302.Cm error ,
303or
304.Cm unsupp ;
305.Cm all
306is an alias for
307.Cm warning .
308By default,
309.Nm
310is silent.
311See the
312.Xr mandoc 1
313manual for details.
314.It Fl w
315List the pathnames of the manual pages which
316.Nm
317would display for the specified
318.Ar section
319and
320.Ar name
321combination.
322.El
323.Pp
324Guidelines for writing
325man pages can be found in
326.Xr mdoc 7 .
327.Pp
328If both a formatted and an unformatted version of the same manual page,
329for example
330.Pa cat1/foo.0
331and

--- 77 unchanged lines hidden (view full) ---

409.Sh STANDARDS
410The
411.Nm
412utility is compliant with the
413.St -p1003.1-2008
414specification.
415.Pp
416The flags
417.Op Fl aCcfhIKlMmOSsTWw ,
418as well as the environment variables
419.Ev MACHINE ,
420.Ev MANPAGER ,
421and
422.Ev MANPATH ,
423are extensions to that specification.
424.Sh HISTORY
425A

--- 36 unchanged lines hidden ---