man page显示的命令后的数字含义 (Linux/Unix)
发布于 2008-10-14 22:37 阅读:53,145 评论:0 标签: man 命令

      在man的时候,man page显示的内容中,命令后面会接一个或一组数字,这个数字代表着这个命令的类型。也就是说实际上命令在操作系统中是按照类型存储的。具体可以到/usr/man/目录下查看,你会发现有从man1到man9的目录。具体介绍在die.net上介绍:【这里】。如下:

以下是引用片段:

Section 1
user commands (introduction)
Section 2
system calls (introduction)
Section 3
library functions (introduction)
Section 4
special files (introduction)
Section 5
file formats (introduction)
Section 6
games (introduction)
Section 7
conventions and miscellany (introduction)
Section 8
administration and privileged commands (introduction)
Section L
math library functions
Section N
tcl functions

      结合/usr/man/目录,我们可以有如下的介绍:

以下是引用片段:

  /usr/man/man1   普通的命令─在shell中执行的命令  
  /usr/man/man2   系统调用─关于核心函数的文档  
  /usr/man/man3   库调用─libc函数的使用手册页,如printf,fread
  /usr/man/man4   特殊文件─关于/dev目录中的文件的信息  
  /usr/man/man5   文件格式─/etc/passwd和其他文件的详细格式  
  /usr/man/man6   游戏:给游戏留的,由各个游戏自己定义
  /usr/man/man7   宏命令包─对Linux文件系统、使用手册页等的说明。还有一些变量,比如向environ这种全局变量在这里就有说明
  /usr/man/man8   系统管理─根操作员操作的使用手册页,这些命令只能由root使用,如ifconfig
  /usr/man/man9   核心例程─关于Linux操作系统内核源例程或者内核模块技术指标的文档

      参考资料:

以下是引用片段:

Linux man pages
http://linux.die.net/man/

谁知道很多man文件后面的(8)代表什么啊?
http://topic.csdn.net/t/20040815/10/3275623.html

在man的时候,man page显示的内容中,命令后面会接一组数字,这个数字若为1、2、5、8,表示该查询的命令(文件)的含义是什么?
http://blog.sina.com.cn/s/blog_4a36c25501009ljv.html

LINUX MAN 常用命令
http://hi.baidu.com/zhou2008/blog/item/e6f17b3e36d38a3871cf6ca1.html

展开全文  
收起全文