Linux命令 whatis - 查詢一個(gè)命令執(zhí)行什么功能

2022-03-24 09:50 更新

whatis

查詢一個(gè)命令執(zhí)行什么功能

補(bǔ)充說(shuō)明

whatis命令 是用于查詢一個(gè)命令執(zhí)行什么功能,并將查詢結(jié)果打印到終端上。

whatis命令在用catman -w命令創(chuàng)建的數(shù)據(jù)庫(kù)中查找command參數(shù)指定的命令、系統(tǒng)調(diào)用、庫(kù)函數(shù)或特殊文件名。whatis命令顯示手冊(cè)部分的頁(yè)眉行。然后可以發(fā)出man命令以獲取附加的信息。whatis命令等同于使用man -f命令。

語(yǔ)法

whatis

實(shí)例

[root@localhost ~]# whatis ls
ls                   (1)  - list directory contents
ls                   (1p)  - list directory contents

[root@localhost ~]# whatis cp
cp                   (1)  - copy files and directories
cp                   (1p)  - copy files

[root@localhost ~]# whatis chown
chown                (1)  - change file owner and group
chown                (1p)  - change the file ownership
chown                (2)  - change ownership of a file
chown                (3p)  - change owner and group of a file

[root@localhost ~]# whatis man
man                  (1)  - format and display the on-line manual pages
man                  (1p)  - display system documentation
man                  (7)  - macros to format man pages
man                 (rpm) - A set of documentation tools: man, apropos and whatis.
man-pages           (rpm) - Man (manual) pages from the Linux Documentation Project.
man.config [man]     (5)  - configuration data for man


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)