【问题标题】:What do the numbers after command and system call names mean in *nix?*nix 中命令和系统调用名称后面的数字是什么意思?
【发布时间】:2012-08-27 03:32:11
【问题描述】:

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

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

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

【问题讨论】:

  • 我投票结束这个问题,因为它属于 Unix 和 Linux 站点

标签: linux posix system-calls freebsd manpage


【解决方案1】:

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

Wikipedia 上有一些 additional informationhow to use man pages 上的此页面。

【讨论】:

  • 哦,非常感谢。现在我将不再受到手册页作者的歧视:)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2010-09-08
  • 1970-01-01
  • 2011-06-10
  • 2020-01-01
  • 2013-10-19
  • 1970-01-01
相关资源
最近更新 更多