这个问题已经有了答案:
Why do programs in Unix-like environments have numbers after their name? [duplicate]
2个答案
在文档中搜索有关git命令的信息时,我注意到有些命令已命名为(1)
(git(1)
,git-checkout(1)
,git-reset(1)
),有些命令命名为(7)
(gittutorial(7)
)。
它是否对应于可能的参数数目?
谢谢
最佳答案
这是man
页的类型。man
的手册分为几个部分,第一章是可执行的,而git
是可执行的。整个列表由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]
有些东西有多个部分,比如
time
既是一个命令又是一个系统调用,看看man 1 time
和man 2 time
之间的区别。关于git - git(1)中的“(1)”是什么意思? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21723538/