whatis

查詢一個命令執行什麼功能

補充說明

whatis命令 是用於查詢一個命令執行什麼功能,並將查詢結果打印到終端上。

whatis命令在用catman -w命令創建的數據庫中查找command參數指定的命令、系統調用、庫函數或特殊文件名。whatis命令顯示手冊部分的頁眉行。然後可以發出man命令以獲取附加的信息。whatis命令等同於使用man -f命令。

語法

1whatis

實例

 1[root@localhost ~]# whatis ls
 2ls                   (1)  - list directory contents
 3ls                   (1p)  - list directory contents
 4
 5[root@localhost ~]# whatis cp
 6cp                   (1)  - copy files and directories
 7cp                   (1p)  - copy files
 8
 9[root@localhost ~]# whatis chown
10chown                (1)  - change file owner and group
11chown                (1p)  - change the file ownership
12chown                (2)  - change ownership of a file
13chown                (3p)  - change owner and group of a file
14
15[root@localhost ~]# whatis man
16man                  (1)  - format and display the on-line manual pages
17man                  (1p)  - display system documentation
18man                  (7)  - macros to format man pages
19man                 (rpm) - A set of documentation tools: man, apropos and whatis.
20man-pages           (rpm) - Man (manual) pages from the Linux Documentation Project.
21man.config [man]     (5)  - configuration data for man

來源:https://github.com/jaywcjlove/linux-command

最後修改於: Wednesday, January 31, 2024

相關文章:

翻譯: