linux man手冊的基本組成和使用方法
根本方法:在命令列中輸入man man
可以檢視man手冊的詳細使用方法,這裡記錄一些目前用到的內容。
man手冊主要分為9個部分,分別是(序號後標*為常用手冊)
手冊序號
英文介紹
中文介紹
1*executable programs or shell commands
可執行程式和shell命令
2*system calls (functions provided by the kernel)
系統呼叫
3*library calls (functions within program libraries)
(c語言)庫函式
4special files (usually found in /dev)
特殊檔案
5file formats and conventions, e.g. /etc/passwd
檔案格式
6games
遊戲7*
miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)雜項8
system administration commands (usually only for root)
系統管理員命令(通常只用於roor使用者)
9kernel routines [non standard]
核心例程(非標準)
man 1
:查詢可執行程式或shell命令的用法,如:man 1 cd
,man 1 ls
等;
man 2
:查詢系統呼叫相關資訊,如man 2 read
,man 2 write
等。
man 3
:查詢c語言庫函式相關資訊,如man 3 printf
,man 3 exit
等。
man 7
:查詢雜項,如man 7 socket
,man 7 ip
等。
man -k
:可以用來查詢不知道具體在哪個手冊頁的(函式、結構體、型別)定義,如man -k sockaddr_in
。
當我們想檢視pthread_create()
函式的使用方法時,輸入man pthread
顯示無條目,需要自己安裝。
在ubuntu下,可以通過:sudo apt-get install manpages-posix manpages-posix-dev
安裝posix man手冊,
再輸入man pthread_create
即可顯示結果。
server基本組成
字串操作封裝,如 數字字串轉換 分隔符拆分 等常用操作 string handle 網路基礎資料結構,如 ip數字轉換 獲取網域名稱 物件池封裝 位儲存 bit map 序列化反序列化buffer octets,能夠支援寫時拷貝以及壓縮功能 阻塞佇列 block queue ring buffer ...
Docker基本組成
docker client 客戶端 docker daemon 守護程序 c s架構的程式,docker客戶端向docker的伺服器端 守護程序 發出請求,守護程序處理完所有的工作,並返回結果 客戶端對伺服器端的訪問既可以在本地也可以在遠端來訪問。docker image 映象 1 理解一 映象是d...
mysql基本組成
連線管理器 連線使用者請求 執行緒管理器 啟用執行緒連線處理使用者請求 使用者模組 對連線mysql伺服器的使用者做認證,並複製接受與駁回動作 命令分發模組 對使用者的sql語句分析並分發到解析器 快取模組 如果是查詢語句且快取命中,則直接快取返回 日誌模組 日誌記錄 解析器 解析查詢,生成解析數,...