亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Linux whatis命令的使用方法

 更新時間:2020年02月19日 11:54:46   作者:滄海一笑-dj  
這篇文章主要介紹了Linux whatis命令的使用方法,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧

01. 命令概述

whatis命令在一些特定的包含系統(tǒng)命令的簡短描述的數(shù)據(jù)庫文件里查找關(guān)鍵字,然后把結(jié)果送到標準輸出。 查找的內(nèi)容必須完全匹配關(guān)鍵字的才會輸出。whatis數(shù)據(jù)庫文件是用/usr/sbin/makewhatis 命令建立的。

02. 命令格式

whatis [OPTION…] 關(guān)鍵詞…

03. 常用選項

Usage: whatis [OPTION...] 關(guān)鍵詞...

 -d, --debug        輸出調(diào)試信息
 -v, --verbose       輸出詳細的警告信息
 -r, --regex        把每個關(guān)鍵詞都當作正則表達式解讀
 -w, --wildcard       關(guān)鍵詞里包含通配符
 -l, --long         不要把輸出按終端寬度截斷
 -C, --config-file=文件  使用該用戶設(shè)置文件
 -L, --locale=區(qū)域    定義本次搜索所使用的區(qū)域設(shè)置
 -m, --systems=系統(tǒng)    use manual pages from other systems
 -M, --manpath=路徑    設(shè)置搜索手冊頁的路徑為“路徑”
 -s, --sections=列表, --section=列表
               search only these sections (colon-separated)
 -?, --help         give this help list
   --usage        give a short usage message
 -V, --version       print program version

04. 參考示例

[deng@localhost ~]$ whatis ls
ls (1)        - 列目錄內(nèi)容
ls (1p)       - list directory contents

[deng@localhost ~]$ whatis cp
cp (1)        - 復(fù)制文件和目錄
cp (1p)       - copy files

[deng@localhost ~]$ whatis chown
chown (1)      - 修改文件所有者和組別
chown (1p)      - change the file ownership
chown (2)      - change ownership of a file
chown (3p)      - change owner and group of a file

[deng@localhost ~]$ whatis man
man (1)       - 格式化并顯示在線幫助手冊頁
man (7)       - 格式化手冊頁的宏
man (1p)       - display system documentation
[deng@localhost ~]$ 

如果需要重建這個命令相關(guān)信息的數(shù)據(jù)庫,執(zhí)行以下命令:

[root@localhost ~]# makewhatis

注意:Centos7.5暫時不支持該命令。

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論