Main index | Section 1 | 日本語 | Deutsch | Options |
By default,
apropos
searches for
makewhatis(8)
databases in the default paths stipulated by
man(1)
and uses case-insensitive extended regular expression matching
over manual names and descriptions
(theamp;Nm andamp;Nd macro keys).
Multiple terms imply pairwise
whatis
is a synonym for
apropos
The options are as follows:
| |
Instead of showing only the title lines, show the complete manual pages,
just like
man(1)
| |
| |
Specify an alternative configuration file in man.conf(5) format. | |
| |
Search for all words in expression in manual page names only. The search is case-insensitive and matches whole words only. In this mode, macro keys, comparison operators, and logical operators are not available. | |
| |
Support the full expression syntax. It is the default for apropos. | |
| |
Use the colon-separated path instead of the default list of paths searched for makewhatis(8) databases. Invalid paths, or paths without manual databases, are ignored. | |
| |
Prepend the colon-separated paths to the list of paths searched for makewhatis(8) databases. Invalid paths, or paths without manual databases, are ignored. | |
| |
Show the values associated with the key outkey instead of the manual descriptions. | |
| |
Restrict the search to pages for the specified machine(1) architecture. arch is case-insensitive. By default, pages for all architectures are shown. | |
| |
Restrict the search to the specified section of the manual. By default, pages from all sections are shown. See man(1) for a listing of sections. | |
The options
An
expression
consists of search terms joined by logical operators
amp;( expr amp;) | |
True if the subexpression expr is true. | |
expr1 | |
True if both expr1 and expr2 are true (logical 'and'). | |
expr1 [ | |
True if expr1 and/or expr2 evaluate to true (logical 'or'). | |
term | True if term is satisfied. This has syntax [[key [, key ...]](=|ti)]val,where key is an mdoc(7) macro to query and val is its value. See Macro Keys for a list of available keys. Operator = evaluates a substring, while ti evaluates a case-sensitive extended regular expression. |
| |
If term is a regular expression, it is evaluated case-insensitively. Has no effect on substring terms. | |
Results are sorted first according to the section number in ascending numerical order, then by the page name in ascending ascii(7) alphabetical order, case-insensitive.
Each output line is formatted as
Where "name" is the manual's name, "sec" is the manual section, and "description" is the manual's short description. If an architecture is specified for the manual, it is displayed as
Resulting manuals may be accessed as
$ man -s sec name
If an architecture is specified in the output, use
$ man -s sec -S arch name
Names and description:
amp;Nm | manual name |
amp;Nd | one-line manual description |
arch | machine architecture (case-insensitive) |
sec | manual section number |
Sections and cross references:
amp;Sh | section header (excluding standard sections) |
amp;Ss | subsection header |
amp;Xr | cross reference to another manual page |
amp;Rs | bibliographic reference |
Semantic markup for command line utilities:
amp;Fl | command line options (flags) |
amp;Cm | command modifier |
amp;Ar | command argument |
amp;Ic | internal or interactive command |
amp;Ev | environmental variable |
amp;Pa | file system path |
Semantic markup for function libraries:
amp;Lb | function library name |
amp;In | include file |
amp;Ft | function return type |
amp;Fn | function name |
amp;Fa | function argument type and name |
amp;Vt | variable type |
amp;Va | variable name |
amp;Dv | defined variable or preprocessor constant |
amp;Er | error constant |
amp;Ev | environmental variable |
Various semantic markup:
amp;An | author name |
amp;Lk | hyperlink |
amp;Mt | "mailto "hyperlink |
amp;Cd | kernel configuration declaration |
amp;Ms | mathematical symbol |
amp;Tn | tradename |
Physical markup:
amp;Em | italic font or underline |
amp;Sy | boldface font |
amp;Li | typewriter font |
Text production:
amp;St | reference to a standards document |
amp;At | At version reference |
amp;Bx | Bx version reference |
amp;Bsx | Bsx version reference |
amp;Nx | Nx version reference |
amp;Fx | Fx version reference |
amp;Ox | Ox version reference |
amp;Dx | Dx version reference |
In general, macro keys are supposed to yield complete results without expecting the user to consider actual macro usage. For example, results include:
amp;Fa | function arguments appearing on amp;Fn lines |
amp;Fn | function names marked up with amp;Fo macros |
amp;In | include file names marked up with amp;Fd macros |
amp;Vt | types appearing as function return types and |
amp; | types appearing in function arguments in the SYNOPSIS |
MANPAGER | |
Any non-empty value of the environment variable
MANPAGER
is used instead of the standard pagination program,
less(1);
see
man(1)
for details.
Only used if
| |
MANPATH |
A colon-separated list of directories to search for manual pages; see
man(1)
for details.
Overridden by
|
PAGER |
Specifies the pagination program to use when
MANPAGER
is not defined.
If neither PAGER nor MANPAGER is defined,
less(1)
is used.
Only used if
|
mandoc.db | name of the makewhatis(8) keyword database |
/etc/man.conf | |
default man(1) configuration file | |
$ apropos =.cf
Include matches for ".cnf" and ".conf" as well:
$ apropos =.cf =.cnf =.conf
Search in names and descriptions using a case-sensitive regular expression:
$ apropos aqtiset.?[ug]idaq
Search for all manual pages in a given section:
$ apropos -s 9 amp;.
Search for manuals in the library section mentioning both the "optind" and the "optarg" variables:
$ apropos -s 3 Va=optind -a Va=optarg
Do exactly the same as calling whatis with the argument "ssh":
$ apropos -- -i aqNmti[[:<:]]ssh[[:>:]]aq
The following two invocations are equivalent:
$ apropos \( expression\) -a archti^(arch|any)$ -a secti^section$
All options, the whatis command, support for logical operators, macro keys, substring matching, sorting of results, the environment variables MANPAGER and MANPATH, the database format, and the configuration file are extensions to that specification.
The
APROPOS (1) | $Mdocdate: October 1 2020 $ |
Main index | Section 1 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | What is this horrible fascination with Unix? The operating system of the 1960s, still gaining in popularity in the 1990s. | ” |
— Donald A. Norman |