Linux系統上擷取指令幫助資訊的方法
一 、help Command
适用于内部指令
代碼如下:
# type cd
cd is a shell builtin
# help cd
# type ls
ls is aliased to `ls --color=auto‘
# help ls
-bash: help: no help topics match `ls’。 Try `help help‘ or `man -k ls’ or `info ls‘。
二、Command –help/-h
适用于外部指令
# ls --help
三、man Command
# man cd
四、 info Command
有超連結穩文檔,info是資訊頁,提供作者、版本,什麼時候釋出等詳細資訊
五、README
絕大多數程式都有相應的幫助文檔,儲存在/usr/share/doc檔案夾中
如:
# ls /usr/share/doc/ntp-4.2.4p8/
ChangeLog COPYRIGHT NEWS
六、Google
遇到問題,二話不說Google,優先參考項目官方文檔
上面就是Linux擷取指令幫助的方法介紹了,本文一共介紹了六種檢視方法,最後一個方法不一定要使用Google,也可百度搜尋,看個人習慣。