apropos
apropos linux command cheatsheet by Thamizhiniyan C S
Introduction
The apropos
command is used to search the manual page names and descriptions.
Syntax
apropos [-dalv?V] [-e|-w|-r] [-s list] [-m system[,...]] [-M path] [-L locale] [-C file] keyword ...
Important Flags
Flag | Description |
---|---|
| Prints debugging messages. |
| Print verbose warning messages. |
| Search each keyword for exact match. |
| Interpret each keyword as a regex. |
| The keyword(s) contain wildcards. |
| Require all keywords to match. |
| Do not trim output to terminal width. |
| Uses user-configuration files instead of the $MANPATH. |
| Define the locale for this search. |
| Use manual pages from other systems. Looks for man page descriptions from other OSs. |
| Sets the search path to PATH rather than the default $MANPATH. |
| Search only these sections (colon-separated). Searches only in specific man pages sections. |
| Give this help list. |
| Give a short usage message. |
| Print program version. |
Examples
Command | Description |
---|---|
The apropos primary usage is to find a single keyword in man pages. | |
Add another variable to narrow down the matches. | |
Achieve a similar effect without `-a` by encasing keywords in double quotes. | |
Find Either of Two / More Parameters | |
Find Exact Match | |
Search Specific Sections | |
Use Regex Symbols | |
Use regex to conduct an even more specific search. | |
As the output shows, each line includes list at the beginning, belongs to section 3 or 8, and has one of the keywords. | |
To avoid the trimming of descriptions in apropos command output |
Last updated