Shell 聯機幫助

所有的Unix命令來與一些可選的和強制性的選擇。忘記這些命令的完整語法,這是很常見。

因爲沒有人能記得每一個UNIX命令和選項,一直提供在線幫助,因爲在Unix 早期的時候。

Unix的版本的幫助文件,被稱爲手冊頁。如果你知道任何命令的名字,但你不知道如何使用它,那麼手冊頁來幫助你。

語法

下面是一個簡單的命令來獲得系統工作,而任何Unix命令的細節:

$man command

例子:

現在,你能想象的任何命令,你想要得到的幫助。假設你想知道關於pwd,那麼你只需要使用下面的命令:

$man pwd

上面的命令將打開一個幫助你會給你pwd命令的完整信息。親自試一試在你的命令提示符下,以獲得更多的細節

你可以得到完整的細節上man命令本身使用下面的命令:

$man man

手冊頁部分:

手冊頁一般分爲部分,一般的man page作者偏好變化。下面是一些較常見的部分:

部分 描述
NAME Name of the command
SYNOPSIS General usage parameters of the command.
DESCRIPTION Generally describes of the command and what it does
OPTIONS Describes all the arguments or options to the command
SEE ALSO Lists other commands that are directly related to the command in the man page or closely resembling its functionality.
BUGS Explains any known issues or bugs that exist with the command or its output
EXAMPLES Common usage examples that give the reader an idea of how the command can be used.
AUTHORS The author of the man page/command.

最後,我要說的是手冊頁是一個重要的研究資源和第一途徑,當你需要在Unix系統信息的命令或文件。

有用的Shell命令:

現在你知道如何着手,鏈接後會給你一個最重要和最頻繁使用的Unix Shell命令列表。

如果你不知道如何使用的任何命令,然後使用手冊頁獲取有關命令的完整細節。

這裏是清單shell - 有用的命令


發佈了36 篇原創文章 · 獲贊 10 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章