man 幫助手冊

2021-09-12 03:21:17 字數 1189 閱讀 7474

常用的命令選項

-f, --whatis 相當於 whatis

-k, --apropos 相當於 apropos

-w, --where, --path, --location 列印手冊頁的物理位置

-w, --where-cat, --location-cat 列印 cat 檔案的物理位置

-m, --manpath=path 將手冊頁的搜尋路徑設定為 path

手冊代號分類代表的含義

1 可執行程式或 shell 命令

2 系統呼叫(核心提供的函式)

3 庫呼叫(程式庫中的函式)

4 特殊檔案(通常在 /dev 中)

5 檔案格式和約定,例如 /etc/passwd

6 遊戲

7 雜項(包括巨集包和約定), e.g. man(7), groff(7)

8 系統管理命令(通常僅適用於 root)

9 核心例程 [非標準]

有關的其他命令

apropos (1) - 在 whatis 資料庫中查詢字串

whatis (1) - 在 whatis 資料庫裡查詢完整的單詞

mandb (8) - 建立或更新手冊頁索引快取

makewhatis (8) - 建立whatis資料庫(centos6)

info (1) - 閱讀 info 文件

常用的操作指令

j 下一行

k 上一行

g 首頁

g 尾頁

/ 向下搜尋

? 向上搜尋

n 下乙個匹配項

n 上乙個匹配項

示例[root@os7 ~]# man ls

[root@os7 ~]# man -f ls

[root@os7 ~]# man -k ls

[root@os7 ~]# man -w ls

[root@os7 ~]# man -m /usr/share/man/zh_cn/ -f man

Linux幫助手冊(man)

目錄 格式 whatis command 作用 顯示命令的簡短描述 類似命令 man f command 更新命令 centos 6 makewhatis centos 7 mandb 位置 centos 6 var cache man whatis 由於whatis獲取的資訊都是從man中得到的,...

linux 打造man中文幫助手冊

部落格 學it的同學都知道,linux是乙個好東西,但初學者往往會因為太多的命令覺得頭疼,更頭疼的是所有的幫助文件都是英文.其實linux之所以強大,就在於其強大的命令列,如此繁雜的命令讓乙個六級以下英語水平的同學去看實在是一件很殘忍的事,甚至極大打消了很多同學學習linux的熱情.這篇文章就為廣大...

命令列man的幫助手冊

指定使用那種語音的手冊,可以使用命令選項 m man m usr share man zh cn read m path set search path for manual pages to path man手冊 yum install manman中文安裝包 yum install manpag...