linux命令之whatis
1.whatis介绍
whatis filexxx/command将会在whatis数据库中查询"filexxx/command". 当你想确认系统命令和重要的配置文件的时候, 这个命令就非常重要了. 可以把这个命令认为是一个简单的man命令。
2.whatis用法
命令:
whatis -h
[root@elasticsearch ~]# whatis -h
Usage: whatis [OPTION...] KEYWORD...
-d, --debug emit debugging messages
-v, --verbose print verbose warning messages
-r, --regex interpret each keyword as a regex
-w, --wildcard the keyword(s) contain wildcards
-l, --long do not trim output to terminal width
-C, --config-file=FILE use this user configuration file
-L, --locale=LOCALE define the locale for this search
-m, --systems=SYSTEM use manual pages from other systems
-M, --manpath=PATH set search path for manual pages to PATH
-s, --sections=LIST, --section=LIST
search only these sections (colon-separated)
-?, --help give this help list
--usage give a short usage message
-V, --version print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
Report bugs to cjwatson@debian.org.
[root@elasticsearch ~]#
3.whatis样例
命令:
whatis whatis
[root@elasticsearch ~]# whatis whatis
whatis (1) - display manual page descriptions
[root@elasticsearch ~]#