git - git(1) 中的 "(1)"是做什么用的?

标签 git

<分区>

在文档中搜索有关 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 timeman 2 time<的区别.

关于git - git(1) 中的 "(1)"是做什么用的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21723538/

相关文章:

java - 在不使用 Egit 的情况下在 Eclipse 中使用 Github

git - repo 同步/Git 克隆仅从 Jenkins 的奴隶失败

git - 将现有的、未提交的工作移动到 Git 中的新分支

git - 是否可以在 git 中的第一次提交时指定分支名称?

linux - git: 创建远程分支失败

Github 上显示我一直关闭的问题数量

git - 我可以在家庭服务器上设置 git 存储库吗? (如果是这样怎么办?)

git pre-push 钩子(Hook) : run test on each new commit

git - 如何从 git 中删除 'XXX$1.class'?

c++ - 在 GitHub 中,如何在 "RecoverCompact"中搜索 "CPubKey::RecoverCompact"