本文主要是介绍Linux命令(142)之whatis,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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=LISTsearch only these sections (colon-separated)-?, --help give this help list--usage give a short usage message-V, --version print program versionMandatory 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 ~]#
这篇关于Linux命令(142)之whatis的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!