当我们在使用man查询命令时会发现命令后面会有一个数字,如ls命令后面的1,shutdown后面的8。
LS(1) User Commands LS(1)
NAME
ls - list directory contents
......
shutdown(8) System Manager's Manual shutdown(8)
NAME
shutdown - bring the system down
......
那么这些数字有什么含义呢?使用man man命令可以看到一下的内容。
......
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]
......
一般我们使用较多的是1,5,8
1.用户在Shell环境中可以操作的命令或可执行文件。
5.配置文件或某些文件格式。
8.系统管理员可用的管理命令。