apropos
Quick Reference
Command Name:
apropos
Category:
system management
Platform:
linux
Basic Usage:
Common Use Cases
- 1
Command search
Search for commands related to a specific topic
- 2
Keyword search
Find commands based on keywords
- 3
Learning
Discover new commands and utilities
- 4
Scripting
Use in shell scripts to dynamically search for commands
Syntax
apropos [OPTION...] KEYWORD...
Options
Option | Description |
---|---|
-a, --and | Display only entries that match all keywords (AND operation) |
-d, --debug | Print debugging information |
-e, --exact | Search for exact matches only |
-r, --regex | Interpret each keyword as a regular expression |
-s LIST, --sections=LIST | Search only the given manual sections |
-l, --long | Don't trim output to fit screen width |
-w, --wildcard | Allow wildcards in keywords |
--help | Display help information |
--version | Display version information |
Examples
How to Use These Examples
The examples below show common ways to use the apropos
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
apropos password
Search for commands related to "password" in manual pages.
apropos directory
Find all commands that have "directory" in their name or description.
apropos "list files"
Search for the phrase "list files" in manual page descriptions.
Advanced Examples:
apropos -e passwd
Search for exact matches to the keyword "passwd" only.
apropos -a create user
Find manual pages containing both "create" AND "user" keywords.
apropos -s 1,8 network
Search for "network" only in sections 1 (user commands) and 8 (administrator commands).