1c535eb59SGordon Tetlow.\"- 2*46a9fb72SAlexander Ziaee.\" SPDX-License-Identifier: BSD-2-Clause 3*46a9fb72SAlexander Ziaee.\" 4c535eb59SGordon Tetlow.\" Copyright (c) 2010 Gordon Tetlow 5c535eb59SGordon Tetlow.\" All rights reserved. 6c535eb59SGordon Tetlow.\" 7c535eb59SGordon Tetlow.\" Redistribution and use in source and binary forms, with or without 8c535eb59SGordon Tetlow.\" modification, are permitted provided that the following conditions 9c535eb59SGordon Tetlow.\" are met: 10c535eb59SGordon Tetlow.\" 1. Redistributions of source code must retain the above copyright 11c535eb59SGordon Tetlow.\" notice, this list of conditions and the following disclaimer. 12c535eb59SGordon Tetlow.\" 2. Redistributions in binary form must reproduce the above copyright 13c535eb59SGordon Tetlow.\" notice, this list of conditions and the following disclaimer in the 14c535eb59SGordon Tetlow.\" documentation and/or other materials provided with the distribution. 15c535eb59SGordon Tetlow.\" 16c535eb59SGordon Tetlow.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17c535eb59SGordon Tetlow.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18c535eb59SGordon Tetlow.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19c535eb59SGordon Tetlow.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20c535eb59SGordon Tetlow.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21c535eb59SGordon Tetlow.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22c535eb59SGordon Tetlow.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23c535eb59SGordon Tetlow.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24c535eb59SGordon Tetlow.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25c535eb59SGordon Tetlow.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26c535eb59SGordon Tetlow.\" SUCH DAMAGE. 27c535eb59SGordon Tetlow.\" 28*46a9fb72SAlexander Ziaee.Dd January 24, 2025 29c535eb59SGordon Tetlow.Dt MAN 1 30c535eb59SGordon Tetlow.Os 31c535eb59SGordon Tetlow.Sh NAME 32c535eb59SGordon Tetlow.Nm man 33c535eb59SGordon Tetlow.Nd display online manual documentation pages 34c535eb59SGordon Tetlow.Sh SYNOPSIS 35c535eb59SGordon Tetlow.Nm 36c535eb59SGordon Tetlow.Op Fl adho 379f0f0b4dSRuslan Ermilov.Op Fl t | w 38c535eb59SGordon Tetlow.Op Fl M Ar manpath 39c535eb59SGordon Tetlow.Op Fl P Ar pager 40c535eb59SGordon Tetlow.Op Fl S Ar mansect 41c535eb59SGordon Tetlow.Op Fl m Ar arch Ns Op : Ns Ar machine 42c535eb59SGordon Tetlow.Op Fl p Op Ar eprtv 43c535eb59SGordon Tetlow.Op Ar mansect 44*46a9fb72SAlexander Ziaee.Ar page | Ar 45c535eb59SGordon Tetlow.Nm 46*46a9fb72SAlexander Ziaee.Fl K | f | k 47*46a9fb72SAlexander Ziaee.Ar expression ... 48c535eb59SGordon Tetlow.Sh DESCRIPTION 49c535eb59SGordon TetlowThe 50c535eb59SGordon Tetlow.Nm 51c535eb59SGordon Tetlowutility finds and displays online manual documentation pages. 52c535eb59SGordon TetlowIf 53c535eb59SGordon Tetlow.Ar mansect 54c535eb59SGordon Tetlowis provided, 55c535eb59SGordon Tetlow.Nm 56c535eb59SGordon Tetlowrestricts the search to the specific section of the manual. 57c535eb59SGordon Tetlow.Pp 5884907ef0SAllan JudeThe sections of the manual are: 59*46a9fb72SAlexander Ziaee.Pp 6084907ef0SAllan Jude.Bl -enum -offset indent -compact 6184907ef0SAllan Jude.It 62aca4343cSEdward Tomasz Napierala.Fx 63aca4343cSEdward Tomasz NapieralaGeneral Commands Manual 6484907ef0SAllan Jude.It 65aca4343cSEdward Tomasz Napierala.Fx 66aca4343cSEdward Tomasz NapieralaSystem Calls Manual 6784907ef0SAllan Jude.It 68aca4343cSEdward Tomasz Napierala.Fx 69aca4343cSEdward Tomasz NapieralaLibrary Functions Manual 7084907ef0SAllan Jude.It 71aca4343cSEdward Tomasz Napierala.Fx 72aca4343cSEdward Tomasz NapieralaKernel Interfaces Manual 7384907ef0SAllan Jude.It 74aca4343cSEdward Tomasz Napierala.Fx 75aca4343cSEdward Tomasz NapieralaFile Formats Manual 7684907ef0SAllan Jude.It 77aca4343cSEdward Tomasz Napierala.Fx 78aca4343cSEdward Tomasz NapieralaGames Manual 7984907ef0SAllan Jude.It 80aca4343cSEdward Tomasz Napierala.Fx 81aca4343cSEdward Tomasz NapieralaMiscellaneous Information Manual 8284907ef0SAllan Jude.It 83aca4343cSEdward Tomasz Napierala.Fx 84aca4343cSEdward Tomasz NapieralaSystem Manager's Manual 8584907ef0SAllan Jude.It 86aca4343cSEdward Tomasz Napierala.Fx 87aca4343cSEdward Tomasz NapieralaKernel Developer's Manual 8884907ef0SAllan Jude.El 8984907ef0SAllan Jude.Pp 90c535eb59SGordon TetlowOptions that 91c535eb59SGordon Tetlow.Nm 92c535eb59SGordon Tetlowunderstands: 93c535eb59SGordon Tetlow.Bl -tag -width indent 94*46a9fb72SAlexander Ziaee.It Fl K Ar expression 95*46a9fb72SAlexander ZiaeeSearch full text of all manual pages for an extended regular 96*46a9fb72SAlexander Ziaee.Ar expression , 97*46a9fb72SAlexander Ziaeeas described in 98*46a9fb72SAlexander Ziaee.Xr re_format 7 . 991594084fSFernando ApesteguíaThis option requires 1001594084fSFernando Apesteguía.Xr mandoc 1 . 1011594084fSFernando ApesteguíaThis is a slow operation. 102c535eb59SGordon Tetlow.It Fl M Ar manpath 103*46a9fb72SAlexander ZiaeeForce a specific colon separated manual path instead of the default 104c535eb59SGordon Tetlowsearch path. 105c535eb59SGordon TetlowSee 106c535eb59SGordon Tetlow.Ev MANPATH 107*46a9fb72SAlexander Ziaeein 108*46a9fb72SAlexander Ziaee.Sx ENVIRONMENT . 109c535eb59SGordon Tetlow.It Fl P Ar pager 110c535eb59SGordon TetlowUse specified pager. 111c535eb59SGordon TetlowDefaults to 112*46a9fb72SAlexander Ziaee.Ql less -sR 113a6a3e856SRuslan Ermilovif color support is enabled, or 114*46a9fb72SAlexander Ziaee.Ql less -s . 115c535eb59SGordon TetlowOverrides the 116a6a3e856SRuslan Ermilov.Ev MANPAGER 117a6a3e856SRuslan Ermilovenvironment variable, which in turn overrides the 118c535eb59SGordon Tetlow.Ev PAGER 119c535eb59SGordon Tetlowenvironment variable. 120c535eb59SGordon Tetlow.It Fl S Ar mansect 121*46a9fb72SAlexander ZiaeeRestrict manual sections searched to the specified colon delimited list. 122c535eb59SGordon TetlowDefaults to 123*46a9fb72SAlexander Ziaee.Ql 1:8:2:3:3lua:n:4:5:6:7:9:l . 124c535eb59SGordon TetlowOverrides the 125c535eb59SGordon Tetlow.Ev MANSECT 126c535eb59SGordon Tetlowenvironment variable. 127c535eb59SGordon Tetlow.It Fl a 128c535eb59SGordon TetlowDisplay all manual pages instead of just the first found for each 129c535eb59SGordon Tetlow.Ar page 130c535eb59SGordon Tetlowargument. 131c535eb59SGordon Tetlow.It Fl d 132c535eb59SGordon TetlowPrint extra debugging information. 133c535eb59SGordon TetlowRepeat for increased verbosity. 134c535eb59SGordon TetlowDoes not display the manual page. 135*46a9fb72SAlexander Ziaee.It Fl f Ar expression 136*46a9fb72SAlexander ZiaeeSearch names of all manual pages for an extended regular 137*46a9fb72SAlexander Ziaee.Ar expression , 138*46a9fb72SAlexander Ziaeeemulating 139c535eb59SGordon Tetlow.Xr whatis 1 . 140c535eb59SGordon Tetlow.It Fl h 141c535eb59SGordon TetlowDisplay short help message and exit. 142*46a9fb72SAlexander Ziaee.It Fl k Ar expression 143*46a9fb72SAlexander ZiaeeSearch names and descriptions of all manual pages for an extended regular 144*46a9fb72SAlexander Ziaee.Ar expression , 145*46a9fb72SAlexander Ziaeeemulating basic functionality of 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 17020f68c5fSJens Schweikhardt.Xr nroff 1 Pq Pa ports/textproc/groff 171c535eb59SGordon Tetlowor 17220f68c5fSJens 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 17720f68c5fSJens Schweikhardt.Xr eqn 1 Pq Pa ports/textproc/groff 178c535eb59SGordon Tetlow.It Cm p 17920f68c5fSJens Schweikhardt.Xr pic 1 Pq Pa ports/textproc/groff 180c535eb59SGordon Tetlow.It Cm r 18120f68c5fSJens Schweikhardt.Xr refer 1 Pq Pa ports/textproc/groff 182c535eb59SGordon Tetlow.It Cm t 18320f68c5fSJens 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 19320f68c5fSJens 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 215*46a9fb72SAlexander Ziaee.Va lang Ns _ Ns Va country . Ns Va charset 216c535eb59SGordon Tetlow.It 217*46a9fb72SAlexander Ziaee.Va lang . Ns Va charset 218c535eb59SGordon Tetlow.It 219*46a9fb72SAlexander Ziaee.Li en . Ns Va charset 220c535eb59SGordon Tetlow.El 2219f0f0b4dSRuslan Ermilov.Pp 222c535eb59SGordon TetlowFor example, if 223c535eb59SGordon Tetlow.Ev LC_ALL 224c535eb59SGordon Tetlowis set to 225*46a9fb72SAlexander Ziaee.Ql 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 254*46a9fb72SAlexander Ziaee.Ql aarch64 255c535eb59SGordon Tetlowand 256c535eb59SGordon Tetlow.Ev MACHINE 257c535eb59SGordon Tetlowis set to 258*46a9fb72SAlexander Ziaee.Ql 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 : 281*46a9fb72SAlexander Ziaee.Bl -tag -width indent 282*46a9fb72SAlexander Ziaee.It Ev LC_ALL , Ev LC_CTYPE , Ev 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. 293*46a9fb72SAlexander Ziaee.It Ev MACHINE_ARCH , Ev MACHINE 294c535eb59SGordon TetlowUsed to find platform specific manual pages. 295c535eb59SGordon TetlowIf unset, the output of 296*46a9fb72SAlexander Ziaee.Ql sysctl Va hw.machine_arch 297c535eb59SGordon Tetlowand 298*46a9fb72SAlexander Ziaee.Ql sysctl Va 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 307*46a9fb72SAlexander ZiaeeA colon 308*46a9fb72SAlexander Ziaee.Pq Ql \&: 309*46a9fb72SAlexander Ziaeeseparated list of directories to check for manual pages. 310b2394e73SBaptiste DaroussinInvalid paths, or paths without manual databases, are ignored. 311b2394e73SBaptiste DaroussinOverridden by 312b2394e73SBaptiste Daroussin.Fl M . 313b2394e73SBaptiste DaroussinIf 314b2394e73SBaptiste Daroussin.Ev MANPATH 315b2394e73SBaptiste Daroussinbegins with a colon, it is appended to the default list; 316b2394e73SBaptiste Daroussinif it ends with a colon, it is prepended to the default list; 317b2394e73SBaptiste Daroussinor if it contains two adjacent colons, 318b2394e73SBaptiste Daroussinthe standard search path is inserted between the colons. 319b2394e73SBaptiste DaroussinIf none of these conditions are met, it overrides the 320b2394e73SBaptiste Daroussinstandard search path. 321*46a9fb72SAlexander ZiaeeSee 322*46a9fb72SAlexander Ziaee.Xr manpath 1 . 323c535eb59SGordon Tetlow.It Ev MANROFFSEQ 324c535eb59SGordon TetlowUsed to determine the preprocessors for the manual source before running 32520f68c5fSJens Schweikhardt.Xr nroff 1 Pq Pa ports/textproc/groff 326c535eb59SGordon Tetlowor 32720f68c5fSJens Schweikhardt.Xr troff 1 Pq Pa ports/textproc/groff . 328c535eb59SGordon TetlowIf unset, defaults to 32920f68c5fSJens 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 341*46a9fb72SAlexander Ziaee.Ql 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, 350*46a9fb72SAlexander Ziaee.Ql 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, 357*46a9fb72SAlexander Ziaee.Ql less -s 358c535eb59SGordon Tetlowis used. 359c535eb59SGordon Tetlow.El 360c535eb59SGordon Tetlow.Sh FILES 361*46a9fb72SAlexander Ziaee.Bl -tag -width "/usr/local/etc/man.d/*.conf" -compact 362c535eb59SGordon Tetlow.It Pa /etc/man.conf 363*46a9fb72SAlexander ZiaeeSystem configuration file 364c535eb59SGordon Tetlow.It Pa /usr/local/etc/man.d/*.conf 365*46a9fb72SAlexander ZiaeeLocal 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 : 372*46a9fb72SAlexander Ziaee.Pp 373*46a9fb72SAlexander Ziaee.Dl $ man 2 stat 374df965a68SFernando Apesteguía.Pp 375df965a68SFernando ApesteguíaShow all manual pages for 376*46a9fb72SAlexander Ziaee.Ql stat : 377*46a9fb72SAlexander Ziaee.Pp 378*46a9fb72SAlexander Ziaee.Dl $ man -a stat 379df965a68SFernando Apesteguía.Pp 380df965a68SFernando ApesteguíaList manual pages which match the regular expression either in the title or in 381df965a68SFernando Apesteguíathe body: 382*46a9fb72SAlexander Ziaee.Pp 383*46a9fb72SAlexander Ziaee.Dl $ man -k '\e<copy\e>.*archive' 384df965a68SFernando Apesteguía.Pp 385df965a68SFernando ApesteguíaShow the manual page for 386df965a68SFernando Apesteguía.Xr ls 1 387*46a9fb72SAlexander Ziaeeusing 388df965a68SFernando Apesteguía.Xr cat 1 389*46a9fb72SAlexander Ziaeeas the pager: 390*46a9fb72SAlexander Ziaee.Pp 391*46a9fb72SAlexander Ziaee.Dl $ man -P cat ls 392df965a68SFernando Apesteguía.Pp 393df965a68SFernando ApesteguíaShow the location of the 394df965a68SFernando Apesteguía.Xr ls 1 395df965a68SFernando Apesteguíamanual page: 396*46a9fb72SAlexander Ziaee.Pp 397*46a9fb72SAlexander Ziaee.Dl $ man -w ls 398*46a9fb72SAlexander Ziaee.Pp 399*46a9fb72SAlexander ZiaeeShow a manual page in the current working directory: 400*46a9fb72SAlexander Ziaee.Pp 401*46a9fb72SAlexander Ziaee.Dl $ man ./man.1 402df965a68SFernando Apesteguía.Pp 4031594084fSFernando ApesteguíaShow the location of manual pages in sections 1 and 8 which contain the word 4041594084fSFernando Apesteguía.Ql arm : 405*46a9fb72SAlexander Ziaee.Pp 406*46a9fb72SAlexander Ziaee.Dl $ man -w -K '\e<arm\e>' -S 1:8 407c535eb59SGordon Tetlow.Sh SEE ALSO 408c535eb59SGordon Tetlow.Xr apropos 1 , 4099f0f0b4dSRuslan Ermilov.Xr intro 1 , 410dcea542bSEdward Tomasz Napierala.Xr mandoc 1 , 411c535eb59SGordon Tetlow.Xr manpath 1 , 4129f0f0b4dSRuslan Ermilov.Xr whatis 1 , 413914f6e62SJoel Dahl.Xr intro 2 , 414914f6e62SJoel Dahl.Xr intro 3 , 41573577bf0SRyan Moeller.Xr intro 3lua , 416914f6e62SJoel Dahl.Xr intro 4 , 417914f6e62SJoel Dahl.Xr intro 5 , 418914f6e62SJoel Dahl.Xr man.conf 5 , 419914f6e62SJoel Dahl.Xr intro 6 , 420914f6e62SJoel Dahl.Xr intro 7 , 421dcea542bSEdward Tomasz Napierala.Xr mdoc 7 , 422*46a9fb72SAlexander Ziaee.Xr re_format 7 , 423914f6e62SJoel Dahl.Xr intro 8 , 424914f6e62SJoel Dahl.Xr intro 9 425