linux - 命令和系统调用名称后的数字在 *nix 中是什么意思?

标签 linux posix system-calls freebsd manpage

我经常在手册页或其他文档中看到带有数字后缀的命令或系统调用名称,例如 splice(2) . 虽然,有些出版物不包含这些数字,例如 Splice on Wikipedia .

我从来没有找到关于数字代表什么的解释,甚至不知道从哪里/如何开始搜索。

  1. 这些数字是什么意思?
  2. 这些数字的范围是多少?
  3. 为什么要在函数名和命令名后加上后缀?
  4. 哪些社区使用这些号码?

最佳答案

这些数字指的是 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/

相关文章:

linux - 创建在后台启动的 emacs 别名?

c - 如何判断函数是否在 vfork() 的进程中被调用?

c - 当线程因某些错误而终止时如何得到通知

c - getnameinfo 指定 socklen_t

c - 在 docker 容器内使用 membarrier

linux - 跟踪 : How to ascertain if a system call has called another system call?

c - 在 C 中监视外部进程的读/写事件?

linux - 使用 Java 启动服务器时遇到问题。显示错误【Centos 6】

c - 在多个 fork 进程之间共享错误

c - 是僵尸吗?