Linux 为什么*nix命令被称为Man(1)、Diff(1)、Cat(1)等

Linux 为什么*nix命令被称为Man(1)、Diff(1)、Cat(1)等,linux,unix,command-line,manpage,Linux,Unix,Command Line,Manpage,可能重复: (1)是什么意思?这是它的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 L

可能重复:


(1)是什么意思?

这是它的
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), e.g. man(7), groff(7)
   8   System administration commands (usually only for root)
   9   Kernel routines [Non standard]
它指的是—

1总指挥部 2系统调用 3 C图书馆职能 4个特殊文件(通常是设备,位于/dev中)和驱动程序 5文件格式和约定 6个游戏和屏幕保护程序 7杂项 8系统管理命令和守护进程
来自任何合理的unix系统上的“man man”。

之前提交的所有答案都是正确的——(1)指的是联机手册页的部分。但你的下一个问题可能是:为什么要参考手册部分

答案是相同的单词或命令可能出现在不同的部分。例如,“passwd”既指更改密码的命令,也指文件/etc/passwd。因此,如果你谈论前者,你应该写passwd(1),当谈论后者时,写passwd(5)

man命令可以强制它使用特定的部分,而不是从头到尾搜索。在我的Unix系统(Mac)上,只需键入man passwd,就会调出第1节的条目。要显示第5节的条目,请使用

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    Kernel internals.
man 5 passwd