可能重复:
为什么类Unix环境下的程序在名字后面有数字?
(1)是什么意思?
这是手册页的手册部分。从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 conven- tions), eg man(7), groff(7) 8 System administration commands (usually only for root) 9 coreel routines [Non standard]
所有以前提交的答案都是正确的 – (1)是指在线手册页的部分。 但是你的下一个问题可能是:为什么参考手册部分呢?
答案是同一个词或命令可能出现在不同的部分。 例如,“passwd”指的是更改密码的命令和文件/ etc / passwd。 因此,如果你在谈论前者,你应该写passwd(1) ,当谈到后者时,写passwd(5) 。
man命令有一种强制它使用特定部分而不是从头到尾搜索的方法。 在我的Unix系统(一台Mac)上,只要输入man passwd就会出现第一部分的条目。要显示第五部分的条目,使用
man 5 passwd
1 General commands (tools and utilities). 2 System calls and error numbers. 3 Libraries. 3p perl(1) programmer's reference guide. 4 Device drivers. 5 File formats. 6 Games. 7 Miscellaneous. 8 System maintenance and operation commands. 9 coreel internals.
从任何合理的unix系统上的“man man”。
它是指手册部分 –
1一般命令 2系统调用 3 C库函数 4特殊文件(通常是在/ dev中找到的设备)和驱动程序 5文件格式和约定 6游戏和屏保 7杂记 8系统管理命令和守护进程