2014-02-12 46 views
2

當搜索信息有關的Git的文件中的命令,我注意到一些命令已被命名爲(1)git(1)git-checkout(1)git-reset(1))和一些與(7)gittutorial(7)git(1)中的「(1)」是什麼?

是否對應於可能的參數是多少?

謝謝

回答

6

這是man頁面的類型。 man的手冊分爲幾個部分,第1章爲可執行文件,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之間的差異。

0

數字表示手動(man)部分。每個手冊都分配給某個部分。例如,第1部分用於通用程序,第3部分用於C語言函數。

0

裏有* * UAL幾個「節」。像'git'或'read'這樣的關鍵詞可以引用很多東西。例如,read可以是一個bash腳本函數,一個可執行文件,一個C函數等等。所以,你會發現一些條目,如讀(A),讀(B),讀(C),其中A/B/C編號將與關於bash,utils和C庫的章節有關。