圓括號
我們經常會看到 在說一個對象的man page 的時候,會有這樣的格式:
mmap(2)
shm_open(3)
這個后面的數字是什么意思呢,通過 man man 命令就可以知道,這個是數字是,section
大多數類unix 操作系統,都采用相同的section 的約定:
Section 1
user commands (introduction)
Section 2
system calls (introduction)
Section 3
library functions (introduction)
Section 4
special files (introduction)
Section 5
file formats (introduction)
Section 6
games (introduction)
Section 7
conventions and miscellany (introduction)
Section 8
administration and privileged commands (introduction)
Section L
math library functions
Section N
tcl functions
通過后面的數字,你就能明白一個函數是系統調用,還是只是一個類庫中的一個函數。這個數字還是相當有意義的。
方括號
在方括號內的表達式(“[” 和 “]”之間的字符)是可選的(寫命令時要去掉括號)。
尖括號
在尖括號內的表達式(“[” 和 “]”之間的字符)是必須替換的表達式(而且要去掉括號)。
省略號
省略號表示該選項可以單個或多個