为什么有些Linux系统调用有两个手册页?

解决方法

socket(2)提供socket()系统调用的文档; socket(7)描述了如何在Linux上使用套接字(通常).

man man为您提供部分概述:

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]

这个列表在UNIX系统中或多或少(尽管不是很)“通用”,以及大多数时候你感兴趣的部分.各种UNIX系统中使用的Wikipedia has more documentation on man sections.

有许多“重复”联机帮助页,例如crontab(1)描述了/ sbin / crontab,crontab(5)描述了crontab文件格式.

如果没有使用MANSECT环境变量显式添加节,则可以配置man使用哪个节;在Linux上默认为1 n l 8 3 0 2 5 4 9 6 7.

有关每个部分的介绍,请查看man< n>介绍(即man 7 intro).

奖金提示:
apropos是你的朋友:

$apropos crontab
anacrontab (5)       - configuration file for Anacron
crontab (1)          - maintains crontab files for individual users
crontab (1p)         - schedule periodic background work
crontab (5)          - files used to schedule the execution of programs

相关文章

/etc/sysctl.conf这个目录主要是配置一些系统信息,/etc/sys...
1.作用 useradd或adduser命令用来建立用户帐号和创建用户的起...
它们都是多模式编辑器,不同的是vim 是vi的升级版本,它不仅...
不管是我们在安装软件还是监测软件的使用性能,我们都要随时...
装好Tomcat7后,发现除了本机能访问外界访问不了,岂有此理。...
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,...