[Linux]Linux man命令的使用方法

通常人知道man 命令,好比man ls等 可是linux man實際上是有分section, 由於一樣的東西在不一樣的section出現是表明不一樣的意思。 man 默認是section 1, 若是要查system call getpid, 則可以使用 man 2 getpid來查說明 有些文檔會用相似getpid(2)的方式來講明,這裏的2就是表示section 2,在查說明的時候就用man 2 getpid來查便可。 好比ls(1),就表示查section 1裏的ls 說明。linux

sectiong table: 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]shell

相關文章
相關標籤/搜索