Linux生態中有一個man page項目,就是聯機手冊,里面收錄了Linux系統各種命令程序函數等的使用說明。由于Linux系統生態內容龐大繁雜,每個學習這不可能什么都能記得住,因此隨時使用man命令查看聯機幫助,就成了一個日常的操作動作。
我們也常常在man命令的顯示中,看到ls(1),crontab(8),cron(5)......這種命令后面帶一個括號,括號里面還有數字。這個數字,表示引用的是man page的哪個section,知道了section,就可以通過man命令,直接顯示那個section的內容出來查看,比如:man 1 ls, man 8 crontab, man 5 cron。
linux man手冊、man page項目一共都有哪些section呢?
The table below shows the section numbers of the manual followed by
the types of pages they contain.
linux命令幫助怎么用、1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
shell 數組長度、4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
manjaro常用命令,7 Miscellaneous (including macro packages and conventions), e.g.
man(7), groff(7)
8 System administration commands (usually only for root)
linux find命令,9 Kernel routines [Non standard]
A manual page consists of several sections.
默認情況,在man命令后面,如果不帶數字,man會將所有的section中能找到的內容都顯示出來。更多細節,請查看man man
shell數組、http://man7.org/linux/man-pages/
有的時候,能看到man n ...
n表示new,新的man page。
linux退出命令、還有p,比如:man(1p),p表示Posix標準。
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态