← 返回命令列表

Linux command

apropos 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Search

apropos [keyword]

Example

apropos -e [keyword]

Example

apropos -s [1,8] [keyword]

Example

apropos -r "[network.*config]"

Example

apropos -l [keyword]

说明

apropos searches the manual page names and short descriptions for keywords, helping you find relevant commands when you don't know the exact name. The search queries the whatis database built by mandb. Multiple keywords are OR'd together; use regex for AND behavior.

参数

-e, --exact
Search for exact keyword match
-r, --regex
Interpret keyword as regular expression
-w, --wildcard
Interpret keyword as shell wildcard
-s _list_, --sections _list_
Search only specified manual sections
-l, --long
Don't truncate output lines
-a, --and
Require all keywords to match

FAQ

What is the apropos command used for?

apropos searches the manual page names and short descriptions for keywords, helping you find relevant commands when you don't know the exact name. The search queries the whatis database built by mandb. Multiple keywords are OR'd together; use regex for AND behavior.

How do I run a basic apropos example?

Run `apropos [keyword]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -e, --exact do in apropos?

Search for exact keyword match