xref: /freebsd/usr.bin/man/man.1 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1c535eb59SGordon Tetlow.\"-
2c535eb59SGordon Tetlow.\"  Copyright (c) 2010 Gordon Tetlow
3c535eb59SGordon Tetlow.\"  All rights reserved.
4c535eb59SGordon Tetlow.\"
5c535eb59SGordon Tetlow.\"  Redistribution and use in source and binary forms, with or without
6c535eb59SGordon Tetlow.\"  modification, are permitted provided that the following conditions
7c535eb59SGordon Tetlow.\"  are met:
8c535eb59SGordon Tetlow.\"  1. Redistributions of source code must retain the above copyright
9c535eb59SGordon Tetlow.\"     notice, this list of conditions and the following disclaimer.
10c535eb59SGordon Tetlow.\"  2. Redistributions in binary form must reproduce the above copyright
11c535eb59SGordon Tetlow.\"     notice, this list of conditions and the following disclaimer in the
12c535eb59SGordon Tetlow.\"     documentation and/or other materials provided with the distribution.
13c535eb59SGordon Tetlow.\"
14c535eb59SGordon Tetlow.\"  THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15c535eb59SGordon Tetlow.\"  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16c535eb59SGordon Tetlow.\"  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17c535eb59SGordon Tetlow.\"  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18c535eb59SGordon Tetlow.\"  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19c535eb59SGordon Tetlow.\"  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20c535eb59SGordon Tetlow.\"  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21c535eb59SGordon Tetlow.\"  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22c535eb59SGordon Tetlow.\"  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23c535eb59SGordon Tetlow.\"  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24c535eb59SGordon Tetlow.\"  SUCH DAMAGE.
25c535eb59SGordon Tetlow.\"
261594084fSFernando Apesteguía.Dd January 26, 2022
27c535eb59SGordon Tetlow.Dt MAN 1
28c535eb59SGordon Tetlow.Os
29c535eb59SGordon Tetlow.Sh NAME
30c535eb59SGordon Tetlow.Nm man
31c535eb59SGordon Tetlow.Nd display online manual documentation pages
32c535eb59SGordon Tetlow.Sh SYNOPSIS
33c535eb59SGordon Tetlow.Nm
34c535eb59SGordon Tetlow.Op Fl adho
359f0f0b4dSRuslan Ermilov.Op Fl t | w
36c535eb59SGordon Tetlow.Op Fl M Ar manpath
37c535eb59SGordon Tetlow.Op Fl P Ar pager
38c535eb59SGordon Tetlow.Op Fl S Ar mansect
39c535eb59SGordon Tetlow.Op Fl m Ar arch Ns Op : Ns Ar machine
40c535eb59SGordon Tetlow.Op Fl p Op Ar eprtv
41c535eb59SGordon Tetlow.Op Ar mansect
42c535eb59SGordon Tetlow.Ar page ...
43c535eb59SGordon Tetlow.Nm
441594084fSFernando Apesteguía.Fl K
451594084fSFernando Apesteguía.Ar regexp ...
461594084fSFernando Apesteguía.Nm
47c535eb59SGordon Tetlow.Fl f
48c535eb59SGordon Tetlow.Ar keyword ...
49c535eb59SGordon Tetlow.Nm
50c535eb59SGordon Tetlow.Fl k
51c535eb59SGordon Tetlow.Ar keyword ...
52c535eb59SGordon Tetlow.Sh DESCRIPTION
53c535eb59SGordon TetlowThe
54c535eb59SGordon Tetlow.Nm
55c535eb59SGordon Tetlowutility finds and displays online manual documentation pages.
56c535eb59SGordon TetlowIf
57c535eb59SGordon Tetlow.Ar mansect
58c535eb59SGordon Tetlowis provided,
59c535eb59SGordon Tetlow.Nm
60c535eb59SGordon Tetlowrestricts the search to the specific section of the manual.
61c535eb59SGordon Tetlow.Pp
6284907ef0SAllan JudeThe sections of the manual are:
6384907ef0SAllan Jude.Bl -enum -offset indent -compact
6484907ef0SAllan Jude.It
65aca4343cSEdward Tomasz Napierala.Fx
66aca4343cSEdward Tomasz NapieralaGeneral Commands Manual
6784907ef0SAllan Jude.It
68aca4343cSEdward Tomasz Napierala.Fx
69aca4343cSEdward Tomasz NapieralaSystem Calls Manual
7084907ef0SAllan Jude.It
71aca4343cSEdward Tomasz Napierala.Fx
72aca4343cSEdward Tomasz NapieralaLibrary Functions Manual
7384907ef0SAllan Jude.It
74aca4343cSEdward Tomasz Napierala.Fx
75aca4343cSEdward Tomasz NapieralaKernel Interfaces Manual
7684907ef0SAllan Jude.It
77aca4343cSEdward Tomasz Napierala.Fx
78aca4343cSEdward Tomasz NapieralaFile Formats Manual
7984907ef0SAllan Jude.It
80aca4343cSEdward Tomasz Napierala.Fx
81aca4343cSEdward Tomasz NapieralaGames Manual
8284907ef0SAllan Jude.It
83aca4343cSEdward Tomasz Napierala.Fx
84aca4343cSEdward Tomasz NapieralaMiscellaneous Information Manual
8584907ef0SAllan Jude.It
86aca4343cSEdward Tomasz Napierala.Fx
87aca4343cSEdward Tomasz NapieralaSystem Manager's Manual
8884907ef0SAllan Jude.It
89aca4343cSEdward Tomasz Napierala.Fx
90aca4343cSEdward Tomasz NapieralaKernel Developer's Manual
9184907ef0SAllan Jude.El
9284907ef0SAllan Jude.Pp
93c535eb59SGordon TetlowOptions that
94c535eb59SGordon Tetlow.Nm
95c535eb59SGordon Tetlowunderstands:
96c535eb59SGordon Tetlow.Bl -tag -width indent
971594084fSFernando Apesteguía.It Fl K Ar regexp
981594084fSFernando ApesteguíaDoes a full text search in all manual pages.
991594084fSFernando Apesteguía.Ar regexp
1001594084fSFernando Apesteguíais a regular expression as understood by
1011594084fSFernando Apesteguía.Dq Li "grep -E" .
1021594084fSFernando ApesteguíaThis option requires
1031594084fSFernando Apesteguía.Xr mandoc 1 .
1041594084fSFernando ApesteguíaThis is a slow operation.
105c535eb59SGordon Tetlow.It Fl M Ar manpath
106c535eb59SGordon TetlowForces a specific colon separated manual path instead of the default
107c535eb59SGordon Tetlowsearch path.
108c535eb59SGordon TetlowSee
109c535eb59SGordon Tetlow.Xr manpath 1 .
110c535eb59SGordon TetlowOverrides the
111c535eb59SGordon Tetlow.Ev MANPATH
112c535eb59SGordon Tetlowenvironment variable.
113c535eb59SGordon Tetlow.It Fl P Ar pager
114c535eb59SGordon TetlowUse specified pager.
115c535eb59SGordon TetlowDefaults to
1169f0f0b4dSRuslan Ermilov.Dq Li "less -sR"
117a6a3e856SRuslan Ermilovif color support is enabled, or
11847cc9ee1SAlan Somers.Dq Li "less -s" .
119c535eb59SGordon TetlowOverrides the
120a6a3e856SRuslan Ermilov.Ev MANPAGER
121a6a3e856SRuslan Ermilovenvironment variable, which in turn overrides the
122c535eb59SGordon Tetlow.Ev PAGER
123c535eb59SGordon Tetlowenvironment variable.
124c535eb59SGordon Tetlow.It Fl S Ar mansect
125c535eb59SGordon TetlowRestricts manual sections searched to the specified colon delimited list.
126c535eb59SGordon TetlowDefaults to
127e4c79332SMateusz Piotrowski.Dq Li 1:8:2:3:3lua:n:4:5:6:7:9:l .
128c535eb59SGordon TetlowOverrides the
129c535eb59SGordon Tetlow.Ev MANSECT
130c535eb59SGordon Tetlowenvironment variable.
131c535eb59SGordon Tetlow.It Fl a
132c535eb59SGordon TetlowDisplay all manual pages instead of just the first found for each
133c535eb59SGordon Tetlow.Ar page
134c535eb59SGordon Tetlowargument.
135c535eb59SGordon Tetlow.It Fl d
136c535eb59SGordon TetlowPrint extra debugging information.
137c535eb59SGordon TetlowRepeat for increased verbosity.
138c535eb59SGordon TetlowDoes not display the manual page.
139c535eb59SGordon Tetlow.It Fl f
140c535eb59SGordon TetlowEmulate
141c535eb59SGordon Tetlow.Xr whatis 1 .
142c535eb59SGordon Tetlow.It Fl h
143c535eb59SGordon TetlowDisplay short help message and exit.
144c535eb59SGordon Tetlow.It Fl k
145c535eb59SGordon TetlowEmulate
146c535eb59SGordon Tetlow.Xr apropos 1 .
147c535eb59SGordon Tetlow.It Fl m Ar arch Ns Op : Ns Ar machine
148c535eb59SGordon TetlowOverride the default architecture and machine settings allowing lookup of
149c535eb59SGordon Tetlowother platform specific manual pages.
150c535eb59SGordon TetlowSee
151c535eb59SGordon Tetlow.Sx IMPLEMENTATION NOTES
152c535eb59SGordon Tetlowfor how this option changes the default behavior.
153c535eb59SGordon TetlowOverrides the
154c535eb59SGordon Tetlow.Ev MACHINE_ARCH
155c535eb59SGordon Tetlowand
156c535eb59SGordon Tetlow.Ev MACHINE
157c535eb59SGordon Tetlowenvironment variables.
158c535eb59SGordon Tetlow.It Fl o
159c535eb59SGordon TetlowForce use of non-localized manual pages.
160c535eb59SGordon TetlowSee
161c535eb59SGordon Tetlow.Sx IMPLEMENTATION NOTES
162c535eb59SGordon Tetlowfor how locale specific searches work.
163c535eb59SGordon TetlowOverrides the
164c535eb59SGordon Tetlow.Ev LC_ALL , LC_CTYPE ,
165c535eb59SGordon Tetlowand
166c535eb59SGordon Tetlow.Ev LANG
167c535eb59SGordon Tetlowenvironment variables.
1689f0f0b4dSRuslan Ermilov.It Fl p Op Cm eprtv
169c535eb59SGordon TetlowUse the list of given preprocessors before running
170*20f68c5fSJens Schweikhardt.Xr nroff 1 Pq Pa ports/textproc/groff
171c535eb59SGordon Tetlowor
172*20f68c5fSJens Schweikhardt.Xr troff 1 Pq Pa ports/textproc/groff .
173c535eb59SGordon TetlowValid preprocessors arguments:
1749f0f0b4dSRuslan Ermilov.Pp
175c535eb59SGordon Tetlow.Bl -tag -width indent -compact
176c535eb59SGordon Tetlow.It Cm e
177*20f68c5fSJens Schweikhardt.Xr eqn 1 Pq Pa ports/textproc/groff
178c535eb59SGordon Tetlow.It Cm p
179*20f68c5fSJens Schweikhardt.Xr pic 1 Pq Pa ports/textproc/groff
180c535eb59SGordon Tetlow.It Cm r
181*20f68c5fSJens Schweikhardt.Xr refer 1 Pq Pa ports/textproc/groff
182c535eb59SGordon Tetlow.It Cm t
183*20f68c5fSJens Schweikhardt.Xr tbl 1 Pq Pa ports/textproc/groff
184c535eb59SGordon Tetlow.It Cm v
185c535eb59SGordon Tetlow.Xr vgrind 1
186c535eb59SGordon Tetlow.El
1879f0f0b4dSRuslan Ermilov.Pp
188c535eb59SGordon TetlowOverrides the
189c535eb59SGordon Tetlow.Ev MANROFFSEQ
190c535eb59SGordon Tetlowenvironment variable.
191c535eb59SGordon Tetlow.It Fl t
192c535eb59SGordon TetlowSend manual page source through
193*20f68c5fSJens Schweikhardt.Xr troff 1 Pq Pa ports/textproc/groff
194c535eb59SGordon Tetlowallowing transformation of the manual pages to other formats.
195c535eb59SGordon Tetlow.It Fl w
196c535eb59SGordon TetlowDisplay the location of the manual page instead of the contents of
197c535eb59SGordon Tetlowthe manual page.
198c535eb59SGordon Tetlow.El
199c535eb59SGordon Tetlow.Sh IMPLEMENTATION NOTES
200c535eb59SGordon Tetlow.Ss Locale Specific Searches
201c535eb59SGordon TetlowThe
202c535eb59SGordon Tetlow.Nm
203c535eb59SGordon Tetlowutility supports manual pages in different locales.
204c535eb59SGordon TetlowThe search behavior is dictated by the first of three
205c535eb59SGordon Tetlowenvironment variables with a nonempty string:
2069f0f0b4dSRuslan Ermilov.Ev LC_ALL , LC_CTYPE ,
207c535eb59SGordon Tetlowor
208c535eb59SGordon Tetlow.Ev LANG .
209c535eb59SGordon TetlowIf set,
210c535eb59SGordon Tetlow.Nm
211c535eb59SGordon Tetlowwill search for locale specific manual pages using the following logic:
2129f0f0b4dSRuslan Ermilov.Pp
2139f0f0b4dSRuslan Ermilov.Bl -item -offset indent -compact
214c535eb59SGordon Tetlow.It
2159f0f0b4dSRuslan Ermilov.Va lang Ns _ Ns Va country Ns . Ns Va charset
216c535eb59SGordon Tetlow.It
2179f0f0b4dSRuslan Ermilov.Va lang Ns . Ns Va charset
218c535eb59SGordon Tetlow.It
2199f0f0b4dSRuslan Ermilov.Li en Ns . Ns Va charset
220c535eb59SGordon Tetlow.El
2219f0f0b4dSRuslan Ermilov.Pp
222c535eb59SGordon TetlowFor example, if
223c535eb59SGordon Tetlow.Ev LC_ALL
224c535eb59SGordon Tetlowis set to
2259f0f0b4dSRuslan Ermilov.Dq Li ja_JP.eucJP ,
226c535eb59SGordon Tetlow.Nm
227c535eb59SGordon Tetlowwill search the following paths when considering section 1 manual pages in
228c535eb59SGordon Tetlow.Pa /usr/share/man :
2299f0f0b4dSRuslan Ermilov.Pp
2309f0f0b4dSRuslan Ermilov.Bl -item -offset indent -compact
231c535eb59SGordon Tetlow.It
232c535eb59SGordon Tetlow.Pa /usr/share/man/ja_JP.eucJP/man1
233c535eb59SGordon Tetlow.It
234c535eb59SGordon Tetlow.Pa /usr/share/man/ja.eucJP/man1
235c535eb59SGordon Tetlow.It
236c535eb59SGordon Tetlow.Pa /usr/share/man/en.eucJP/man1
237c535eb59SGordon Tetlow.It
238c535eb59SGordon Tetlow.Pa /usr/share/man/man1
239c535eb59SGordon Tetlow.El
240c535eb59SGordon Tetlow.Ss Platform Specific Searches
241c535eb59SGordon TetlowThe
242c535eb59SGordon Tetlow.Nm
243c535eb59SGordon Tetlowutility supports platform specific manual pages.
244c535eb59SGordon TetlowThe search behavior is dictated by the
245c535eb59SGordon Tetlow.Fl m
246c535eb59SGordon Tetlowoption or the
247c535eb59SGordon Tetlow.Ev MACHINE_ARCH
248c535eb59SGordon Tetlowand
249c535eb59SGordon Tetlow.Ev MACHINE
250c535eb59SGordon Tetlowenvironment variables.
251c535eb59SGordon TetlowFor example, if
252c535eb59SGordon Tetlow.Ev MACHINE_ARCH
253c535eb59SGordon Tetlowis set to
254dad206bdSEnji Cooper.Dq Li aarch64
255c535eb59SGordon Tetlowand
256c535eb59SGordon Tetlow.Ev MACHINE
257c535eb59SGordon Tetlowis set to
258dad206bdSEnji Cooper.Dq Li arm64 ,
259c535eb59SGordon Tetlow.Nm
260c535eb59SGordon Tetlowwill search the following paths when considering section 4 manual pages in
261c535eb59SGordon Tetlow.Pa /usr/share/man :
2629f0f0b4dSRuslan Ermilov.Pp
2639f0f0b4dSRuslan Ermilov.Bl -item -offset indent -compact
264c535eb59SGordon Tetlow.It
265dad206bdSEnji Cooper.Pa /usr/share/man/man4/aarch64
266c535eb59SGordon Tetlow.It
267dad206bdSEnji Cooper.Pa /usr/share/man/man4/arm64
268c535eb59SGordon Tetlow.It
269c535eb59SGordon Tetlow.Pa /usr/share/man/man4
270c535eb59SGordon Tetlow.El
2713d9127f1SGordon Tetlow.Ss Displaying Specific Manual Files
2723d9127f1SGordon TetlowThe
2733d9127f1SGordon Tetlow.Nm
2743d9127f1SGordon Tetlowutility also supports displaying a specific manual page if passed a path
2753d9127f1SGordon Tetlowto the file as long as it contains a
2769f0f0b4dSRuslan Ermilov.Ql /
2773d9127f1SGordon Tetlowcharacter.
278c535eb59SGordon Tetlow.Sh ENVIRONMENT
279c535eb59SGordon TetlowThe following environment variables affect the execution of
280c535eb59SGordon Tetlow.Nm :
2819f0f0b4dSRuslan Ermilov.Bl -tag -width ".Ev MANROFFSEQ"
282c535eb59SGordon Tetlow.It Ev LC_ALL , LC_CTYPE , LANG
283c535eb59SGordon TetlowUsed to find locale specific manual pages.
284c535eb59SGordon TetlowValid values can be found by running the
285c535eb59SGordon Tetlow.Xr locale 1
286c535eb59SGordon Tetlowcommand.
287c535eb59SGordon TetlowSee
288c535eb59SGordon Tetlow.Sx IMPLEMENTATION NOTES
289c535eb59SGordon Tetlowfor details.
290c535eb59SGordon TetlowInfluenced by the
291c535eb59SGordon Tetlow.Fl o
292c535eb59SGordon Tetlowoption.
293c535eb59SGordon Tetlow.It Ev MACHINE_ARCH , MACHINE
294c535eb59SGordon TetlowUsed to find platform specific manual pages.
295c535eb59SGordon TetlowIf unset, the output of
2969f0f0b4dSRuslan Ermilov.Dq Li "sysctl hw.machine_arch"
297c535eb59SGordon Tetlowand
2989f0f0b4dSRuslan Ermilov.Dq Li "sysctl hw.machine"
299c535eb59SGordon Tetlowis used respectively.
300c535eb59SGordon TetlowSee
301c535eb59SGordon Tetlow.Sx IMPLEMENTATION NOTES
302c535eb59SGordon Tetlowfor details.
303c535eb59SGordon TetlowCorresponds to the
304c535eb59SGordon Tetlow.Fl m
305c535eb59SGordon Tetlowoption.
306c535eb59SGordon Tetlow.It Ev MANPATH
307b2394e73SBaptiste DaroussinThe standard search path used by
308b2394e73SBaptiste Daroussin.Xr man 1
309b2394e73SBaptiste Daroussinmay be changed by specifying a path in the
310b2394e73SBaptiste Daroussin.Ev MANPATH
311b2394e73SBaptiste Daroussinenvironment variable.
312b2394e73SBaptiste DaroussinInvalid paths, or paths without manual databases, are ignored.
313b2394e73SBaptiste DaroussinOverridden by
314b2394e73SBaptiste Daroussin.Fl M .
315b2394e73SBaptiste DaroussinIf
316b2394e73SBaptiste Daroussin.Ev MANPATH
317b2394e73SBaptiste Daroussinbegins with a colon, it is appended to the default list;
318b2394e73SBaptiste Daroussinif it ends with a colon, it is prepended to the default list;
319b2394e73SBaptiste Daroussinor if it contains two adjacent colons,
320b2394e73SBaptiste Daroussinthe standard search path is inserted between the colons.
321b2394e73SBaptiste DaroussinIf none of these conditions are met, it overrides the
322b2394e73SBaptiste Daroussinstandard search path.
323c535eb59SGordon Tetlow.It Ev MANROFFSEQ
324c535eb59SGordon TetlowUsed to determine the preprocessors for the manual source before running
325*20f68c5fSJens Schweikhardt.Xr nroff 1 Pq Pa ports/textproc/groff
326c535eb59SGordon Tetlowor
327*20f68c5fSJens Schweikhardt.Xr troff 1 Pq Pa ports/textproc/groff .
328c535eb59SGordon TetlowIf unset, defaults to
329*20f68c5fSJens Schweikhardt.Xr tbl 1 Pq Pa ports/textproc/groff .
330c535eb59SGordon TetlowCorresponds to the
331c535eb59SGordon Tetlow.Fl p
332c535eb59SGordon Tetlowoption.
333c535eb59SGordon Tetlow.It Ev MANSECT
334c535eb59SGordon TetlowRestricts manual sections searched to the specified colon delimited list.
335c535eb59SGordon TetlowCorresponds to the
336c535eb59SGordon Tetlow.Fl S
337c535eb59SGordon Tetlowoption.
338a0094449SRuslan Ermilov.It Ev MANWIDTH
339a0094449SRuslan ErmilovIf set to a numeric value, used as the width manpages should be displayed.
340a0094449SRuslan ErmilovOtherwise, if set to a special value
341a0094449SRuslan Ermilov.Dq Li tty ,
342a0094449SRuslan Ermilovand output is to a terminal,
343a0094449SRuslan Ermilovthe pages may be displayed over the whole width of the screen.
344a6a3e856SRuslan Ermilov.It Ev MANCOLOR
345a6a3e856SRuslan ErmilovIf set, enables color support.
346a6a3e856SRuslan Ermilov.It Ev MANPAGER
347c535eb59SGordon TetlowProgram used to display files.
348a6a3e856SRuslan Ermilov.Pp
349a6a3e856SRuslan ErmilovIf unset, and color support is enabled,
3509f0f0b4dSRuslan Ermilov.Dq Li "less -sR"
351a6a3e856SRuslan Ermilovis used.
352a6a3e856SRuslan Ermilov.Pp
353a6a3e856SRuslan ErmilovIf unset, and color support is disabled, then
354a6a3e856SRuslan Ermilov.Ev PAGER
355a6a3e856SRuslan Ermilovis used.
356a6a3e856SRuslan ErmilovIf that has no value either,
35747cc9ee1SAlan Somers.Dq Li "less -s"
358c535eb59SGordon Tetlowis used.
359c535eb59SGordon Tetlow.El
360c535eb59SGordon Tetlow.Sh FILES
361c535eb59SGordon Tetlow.Bl -tag -width indent -compact
362c535eb59SGordon Tetlow.It Pa /etc/man.conf
363c535eb59SGordon TetlowSystem configuration file.
364c535eb59SGordon Tetlow.It Pa /usr/local/etc/man.d/*.conf
365c535eb59SGordon TetlowLocal configuration files.
366c535eb59SGordon Tetlow.El
36703cd714fSEitan Adler.Sh EXIT STATUS
36803cd714fSEitan Adler.Ex -std
369df965a68SFernando Apesteguía.Sh EXAMPLES
370df965a68SFernando ApesteguíaShow the manual page for
371df965a68SFernando Apesteguía.Xr stat 2 :
372df965a68SFernando Apesteguía.Bd -literal -offset indent
373df965a68SFernando Apesteguía$ man 2 stat
374df965a68SFernando Apesteguía.Ed
375df965a68SFernando Apesteguía.Pp
376df965a68SFernando ApesteguíaShow all manual pages for
377df965a68SFernando Apesteguía.Ql stat .
378df965a68SFernando Apesteguía.Bd -literal -offset indent
379df965a68SFernando Apesteguía$ man -a stat
380df965a68SFernando Apesteguía.Ed
381df965a68SFernando Apesteguía.Pp
382df965a68SFernando ApesteguíaList manual pages which match the regular expression either in the title or in
383df965a68SFernando Apesteguíathe body:
384df965a68SFernando Apesteguía.Bd -literal -offset indent
385df965a68SFernando Apesteguía$ man -k '\e<copy\e>.*archive'
386df965a68SFernando Apesteguía.Ed
387df965a68SFernando Apesteguía.Pp
388df965a68SFernando ApesteguíaShow the manual page for
389df965a68SFernando Apesteguía.Xr ls 1
390df965a68SFernando Apesteguíaand use
391df965a68SFernando Apesteguía.Xr cat 1
392df965a68SFernando Apesteguíaas pager:
393df965a68SFernando Apesteguía.Bd -literal -offset indent
394df965a68SFernando Apesteguía$ man -P cat ls
395df965a68SFernando Apesteguía.Ed
396df965a68SFernando Apesteguía.Pp
397df965a68SFernando ApesteguíaShow the location of the
398df965a68SFernando Apesteguía.Xr ls 1
399df965a68SFernando Apesteguíamanual page:
400df965a68SFernando Apesteguía.Bd -literal -offset indent
401df965a68SFernando Apesteguía$ man -w ls
402df965a68SFernando Apesteguía.Ed
403df965a68SFernando Apesteguía.Pp
4041594084fSFernando ApesteguíaShow the location of manual pages in sections 1 and 8 which contain the word
4051594084fSFernando Apesteguía.Ql arm :
4061594084fSFernando Apesteguía.Bd -literal -offset indent
4071594084fSFernando Apesteguía$ ./man -w -K '\e<arm\e>' -S 1:8
4081594084fSFernando Apesteguía.Ed
409c535eb59SGordon Tetlow.Sh SEE ALSO
410c535eb59SGordon Tetlow.Xr apropos 1 ,
4111594084fSFernando Apesteguía.Xr egrep 1 ,
4129f0f0b4dSRuslan Ermilov.Xr intro 1 ,
413dcea542bSEdward Tomasz Napierala.Xr mandoc 1 ,
414c535eb59SGordon Tetlow.Xr manpath 1 ,
4159f0f0b4dSRuslan Ermilov.Xr whatis 1 ,
416914f6e62SJoel Dahl.Xr intro 2 ,
417914f6e62SJoel Dahl.Xr intro 3 ,
41873577bf0SRyan Moeller.Xr intro 3lua ,
419914f6e62SJoel Dahl.Xr intro 4 ,
420914f6e62SJoel Dahl.Xr intro 5 ,
421914f6e62SJoel Dahl.Xr man.conf 5 ,
422914f6e62SJoel Dahl.Xr intro 6 ,
423914f6e62SJoel Dahl.Xr intro 7 ,
424dcea542bSEdward Tomasz Napierala.Xr mdoc 7 ,
425914f6e62SJoel Dahl.Xr intro 8 ,
426914f6e62SJoel Dahl.Xr intro 9
427