| Main index | Section 1 | 日本語 | Deutsch | Options |
The sections of the manual are:
Options that man understands:
| | |
| Search full text of all manual pages for an extended regular expression, as described in re_format(7). This option requires mandoc(1). This is a slow operation. | |
| | |
| Force a specific colon separated manual path instead of the default search path. See MANPATH in ENVIRONMENT. | |
| | |
| Use specified pager. Defaults to ‘less -sR’ if color support is enabled, or ‘less -s’. Overrides the MANPAGER environment variable, which in turn overrides the PAGER environment variable. | |
| | |
| Restrict manual sections searched to the specified colon delimited list. Defaults to ‘1:8:2:3:3lua:n:4:5:6:7:9:l’. Overrides the MANSECT environment variable. | |
| | |
| Display all manual pages instead of just the first found for each page argument. | |
| | |
| Print extra debugging information. Repeat for increased verbosity. Does not display the manual page. | |
| | |
| Search names of all manual pages for an extended regular expression, emulating whatis(1). | |
| | |
| Display short help message and exit. | |
| | |
| Search names and descriptions of all manual pages for an extended regular expression, emulating basic functionality of apropos(1). | |
| | |
| Override the default architecture and machine settings allowing lookup of other platform specific manual pages. See IMPLEMENTATION NOTES for how this option changes the default behavior. Overrides the MACHINE_ARCH and MACHINE environment variables. | |
| | |
| Force use of non-localized manual pages. See IMPLEMENTATION NOTES for how locale specific searches work. Overrides the LC_ALL, LC_CTYPE, and LANG environment variables. | |
| | |
|
Use the list of given preprocessors before running
nroff(1) ( ports/textproc/groff)
or
troff(1) ( ports/textproc/groff).
Valid preprocessors arguments:
| |
| e | eqn(1) ( ports/textproc/groff) |
| p | pic(1) ( ports/textproc/groff) |
| r | refer(1) ( ports/textproc/groff) |
| t | tbl(1) ( ports/textproc/groff) |
| v | vgrind(1) |
Overrides the MANROFFSEQ environment variable.
| | |
| Send manual page source through troff(1) ( ports/textproc/groff) allowing transformation of the manual pages to other formats. | |
| | |
| Display the location of the manual page instead of the contents of the manual page. | |
| lang_ country. charset | |
| lang. charset | |
| en. charset | |
For example, if LC_ALL is set to ‘ja_JP.eucJP’, man will search the following paths when considering section 1 manual pages in /usr/share/man:
| /usr/share/man/ja_JP.eucJP/man1 | |
| /usr/share/man/ja.eucJP/man1 | |
| /usr/share/man/en.eucJP/man1 | |
| /usr/share/man/man1 | |
| /usr/share/man/man4/aarch64 | |
| /usr/share/man/man4/arm64 | |
| /usr/share/man/man4 | |
| LC_ALL, LC_CTYPE, LANG | |
|
Used to find locale specific manual pages.
Valid values can be found by running the
locale(1)
command.
See
IMPLEMENTATION NOTES
for details.
Influenced by the
| |
| MACHINE_ARCH, MACHINE | |
|
Used to find platform specific manual pages.
If unset, the output of
‘sysctl hw.machine_arch’
and
‘sysctl hw.machine’
is used respectively.
See
IMPLEMENTATION NOTES
for details.
Corresponds to the
| |
| MANPATH | |
|
A colon
(‘amp;:’)
separated list of directories to check for manual pages.
Invalid paths, or paths without manual databases, are ignored.
Overridden by
| |
| MANROFFSEQ | |
|
Used to determine the preprocessors for the manual source before running
nroff(1) ( ports/textproc/groff)
or
troff(1) ( ports/textproc/groff).
If unset, defaults to
tbl(1) ( ports/textproc/groff).
Corresponds to the
| |
| MANSECT | |
|
Restricts manual sections searched to the specified colon delimited list.
Corresponds to the
| |
| MANWIDTH | |
| If set to a numeric value, used as the width manpages should be displayed. Otherwise, if set to a special value ‘tty’, and output is to a terminal, the pages may be displayed over the whole width of the screen. | |
| MANCOLOR | |
| If set, enables color support. | |
| MANPAGER | |
|
Program used to display files.
If unset, and color support is enabled, ‘less -sR’ is used. If unset, and color support is disabled, then PAGER is used. If that has no value either, ‘less -s’ is used. | |
| /etc/man.conf | System configuration file |
| /usr/local/etc/man.d/*.conf | |
| Local configuration files | |
$ man 2 stat
Show all manual pages for ‘stat’:
$ man -a stat
List manual pages which match the regular expression either in the title or in the body:
$ man -k '\<copy\>.*archive'
Show the manual page for ls(1) using cat(1) as the pager:
$ man -P cat ls
Show the location of the ls(1) manual page:
$ man -w ls
Show a manual page in the current working directory:
$ man ./man.1
Show the location of manual pages in sections 1 and 8 which contain the word ‘arm’:
$ man -w -K '\<arm\>' -S 1:8
| MAN (1) | January 24, 2025 |
| Main index | Section 1 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | LISP = Lots of Irritating Silly Parentheses | ” |