我经常在手册页或其他文档中看到带有数字后缀的命令或系统调用名称,例如 splice(2)
.
虽然,有些出版物不包含这些数字,例如 Splice on Wikipedia .
我从来没有找到关于数字代表什么的解释,甚至不知道从哪里/如何开始搜索。
- 这些数字是什么意思?
- 这些数字的范围是多少?
- 为什么要在函数名和命令名后加上后缀?
- 哪些社区使用这些号码?
最佳答案
这些数字指的是 Unix 手册部分。
1 Commands available to users
2 Unix and C system calls
3 C library routines for C programs
4 Special file names
5 File formats and conventions for files used by Unix
6 Games
7 Word processing packages
8 System administration commands and procedures
您可以使用 man
命令指定节号,只需列出节号:
man 1 somecommand
将在手册页的第 1 部分中查找 somecommand
。
维基百科有一些 additional information在这个上,这个页面在 how to use man pages 上也是如此.
关于linux - 命令和系统调用名称后的数字在 *nix 中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12230181/