2019年2月16日 / 180次阅读
Linux
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。
man page项目一共都有哪些section呢?
The table below shows the section numbers of the manual followed by
the types of pages they contain.
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conventions), e.g.
man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
A manual page consists of several sections.
默认情况,在man命令后面,如果不带数字,man会将所有的section中能找到的内容都显示出来。更多细节,请查看man man
http://man7.org/linux/man-pages/
有的时候,能看到man n ...
n表示new,新的man page。
还有p,比如:man(1p),p表示Posix标准。
本文链接:https://www.maixj.net/ict/man-shuzi-20165
前一篇:用VIM去掉文件中的^M
后一篇:echo $-
-->只要几分钟回答问卷,就能轻松赚现金!
©Copyright 麦新杰 Since 2014 云上小悟独立博客版权所有 备案号:苏ICP备14045477号-1。云上小悟网站部分内容来源于网络,转载目的是为了整合信息,收藏学习,服务大家,有些转载内容也难以判断是否有侵权问题,如果侵犯了您的权益,请及时联系站长,我会立即删除。