apropos Command
The apropos command searches manual page names and descriptions for keywords. It's useful for finding relevant commands when you know what you want to do but don't know the exact command name.
Syntax
Description
The apropos command searches the manual page database for entries containing the specified keywords. It displays a list of commands and their brief descriptions that match the search criteria.
Key features:
- Searches manual page names and descriptions
- Helps discover relevant commands
- Supports regular expressions
- Can search multiple keywords
- Useful for learning new commands
Common Options
| Option | Description |
|---|---|
-e |
Search for exact matches only |
-r |
Interpret keywords as regular expressions |
-w |
Match whole words only |
-a |
Require all keywords to match (AND logic) |
-s |
Search specific manual sections |
-l |
Long output format |
-C |
Use specific configuration file |
Examples
Search for file-related commands
Finds all commands related to file operations
Search for network commands
Lists commands related to networking
Exact match search
Searches for exact matches of "copy" only
Search with multiple keywords (OR logic)
Finds commands containing either "copy" OR "move"
Search with multiple keywords (AND logic)
Finds commands containing both "file" AND "copy"
Search using regular expressions
Finds commands starting with "ls"
Search in specific manual sections
Searches for "editor" only in section 1 (user commands)
Whole word search
Matches "cat" as a whole word, not as part of other words
Search for compression tools
Lists all compression-related commands
Search for text processing commands
Finds commands for text manipulation and processing