whatis
whatis linux command cheatsheet by Thamizhiniyan C S
Introduction
The whatis
command is used to display one-line manual page descriptions.
Syntax
whatis [-dlv?V] [-r|-w] [-s list] [-m system[,...]] [-M path] [-L locale] [-C file] name ...
Important Flags
Flag | Description |
---|---|
| Emit debugging messages. |
| Print verbose warning messages. |
| Interpret each keyword as a regex. |
| The keyword(s) contain wildcards. |
| Do not trim output to terminal width. |
| Use this user configuration file. |
| Define the locale for this search. |
| Use manual pages from other systems. |
| Set search path for manual pages to PATH. |
| Search only these sections (colon-separated). |
| Give this help list. |
| Give a short usage message. |
| Print program version. |
Examples
Command | Description |
---|---|
Prints the help message. | |
Prints the debugging information. | |
Prints verbose warning messages. | |
Supports regular expression searches. | |
Searches and displays short descriptions of commands and functions matching the regular expression '^ab'. | |
Searches and displays short descriptions of commands and functions matching the regular expression '^cd'. | |
Searches and displays short descriptions of commands and functions matching the regular expression 'cd$'. | |
Enables wildcard searches using the specified pattern. | |
Searches and displays short descriptions of commands and functions matching the wildcard pattern 'ab*'. | |
Searches and displays short descriptions of commands and functions matching the wildcard pattern 'cd*'. | |
Displays long descriptions in addition to the summary. | |
Allows users to specify the sections from which to retrieve the information. By default, it searches all sections. | |
Accesses information from sections 1 and 2 of the manual page for the cat command. | |
Accesses manual page names for other operating systems. | |
Accesses the short description of the rmdir command from the OS2 manual pages. | |
Specifies an alternate set of colon-delimited manual page hierarchies to search. It overrides the default value of the $MANPATH environment variable. | |
Temporarily overrides the determined locale value, allowing users to supply a locale string directly to the 'whatis' command. | |
Specifies a user configuration file for the 'whatis' command, overriding the default configuration file location ~/.manpath. | |
Prints a help message. | |
Displays short information about the whatis command and exits. | |
Displays version information. | |
Displays the trimmed output of the ssh-import-id command. |
Last updated