W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
所有的Unix命令來(lái)與一些可選的和強(qiáng)制性的選擇。忘記這些命令的完整語(yǔ)法,這是很常見(jiàn)。
因?yàn)闆](méi)有人能記得每一個(gè)UNIX命令和選項(xiàng),一直提供在線幫助,因?yàn)樵赨nix 早期的時(shí)候。
Unix的版本的幫助文件,被稱(chēng)為手冊(cè)頁(yè)。如果你知道任何命令的名字,但你不知道如何使用它,那么手冊(cè)頁(yè)來(lái)幫助你。
下面是一個(gè)簡(jiǎn)單的命令來(lái)獲得系統(tǒng)工作,而任何Unix命令的細(xì)節(jié):
$man command
現(xiàn)在,你能想象的任何命令,你想要得到的幫助。假設(shè)你想知道關(guān)于pwd ,那么你只需要使用下面的命令:
$man pwd
上面的命令將打開(kāi)一個(gè)幫助你會(huì)給你pwd命令的完整信息。親自試一試在你的命令提示符下,以獲得更多的細(xì)節(jié)
你可以得到完整的細(xì)節(jié)上man命令本身使用下面的命令:
$man man
手冊(cè)頁(yè)一般分為部分,一般的man page作者偏好變化。下面是一些較常見(jiàn)的部分:
部分 | 描述 |
---|---|
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. |
最后,我要說(shuō)的是手冊(cè)頁(yè)是一個(gè)重要的研究資源和第一途徑,當(dāng)你需要在Unix系統(tǒng)信息的命令或文件。
現(xiàn)在你知道如何著手,鏈接后會(huì)給你一個(gè)最重要和最頻繁使用的Unix Shell命令列表。
如果你不知道如何使用的任何命令,然后使用手冊(cè)頁(yè)獲取有關(guān)命令的完整細(xì)節(jié)。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: