在文档中搜索关于Git命令的信息时,我注意到一些命令已经用(1) (git(1),git-checkout(1),git-reset(1))命名,还有一些用(7) (gittutorial(7))命名。
它是否与可能参数的数目相对应?
谢谢
发布于 2014-02-12 09:26:01
它是man页面的类型。man的手册分为几个部分,第一章是可执行文件,git是一个可执行文件。
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]有些东西在多个部分中,比如time既是命令又是系统调用,请参阅man 1 time和man 2 time之间的区别。
发布于 2014-02-12 09:23:36
数字表示人工(人)部分。每本手册都分配给某一节。例如,第1节用于通用程序,第3节用于C语言函数。
发布于 2014-02-12 09:25:21
不怎么有意思。这个数字只是指示命令被记录在哪个手册页部分。
您可以在这里找到更多信息:http://www.unix.com/man-page/Linux/1/man/
https://stackoverflow.com/questions/21723538
复制相似问题