← 返回命令列表

Linux command

whatis 命令

文本

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

常用示例

Example

whatis [command]

Example

whatis -l [command]

Example

whatis -w net*

Example

whatis -r 'wish[0-9]\.[0-9]'

Example

whatis -L en [command]

说明

whatis searches the manual page names and displays brief descriptions from the NAME section of matching man pages. It queries the whatis database, a cache of manual page descriptions built by mandb. The command is useful for quickly determining what a command does without reading the full manual page. Multiple commands can be queried at once, and pattern matching allows searching for groups of related commands.

参数

-d, --debug
Enable debug mode
-l, --long
Do not trim output to terminal width
-r, --regex
Interpret name as a regular expression
-w, --wildcard
Interpret name as a shell glob pattern
-s _list_, --sections=_list_
Search only specified manual sections
-m _system_, --systems=_system_
Search man pages from other systems
-M _path_, --manpath=_path_
Set manual page search path
-L _locale_, --locale=_locale_
Set locale for searching
-v, --verbose
Print verbose warning messages

FAQ

What is the whatis command used for?

whatis searches the manual page names and displays brief descriptions from the NAME section of matching man pages. It queries the whatis database, a cache of manual page descriptions built by mandb. The command is useful for quickly determining what a command does without reading the full manual page. Multiple commands can be queried at once, and pattern matching allows searching for groups of related commands.

How do I run a basic whatis example?

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

What does -d, --debug do in whatis?

Enable debug mode