Linux學習筆記_3_Linux常用命令_4_協助命令

來源:互聯網
上載者:User

1、man[manual]: /usr/bin/man

獲得命令或設定檔的協助文檔,優先查看命令的協助

man[命令或設定檔]//會調用more

e.g. manls查看ls命令的協助資訊

manservices查看設定檔services的協助資訊

附:在Linux系統中協助檔案分為九種

如: man5 passwd //查看設定檔的協助

預設: man1 passwd

2、info[information]:/usr/bin/info

說明:與man沒有太大的區別,只不過是資訊的呈現方式不太一樣,並且在UNIX系統中並沒有這個命令。

3、擷取相關檔案簡短的資訊:

whatis[searchthe whatis database for strings]

/usr/bin/whatisapropos

/usr/sbin/makewhatis

獲得索引的簡短說明資訊,找到這個命令最基本的用途

whatis[任何關鍵字]

附: [命令]- - help

主要用於擷取命令的選項資訊

apropos[檔案]

用於擷取檔案的配置資訊,類似與:man-k [檔案]

makewhatis

建立whatis和apropos搜尋使用的資料庫,當使用這兩個命令發生錯誤時,就是 whatisdatabase沒有建立

4、help

查看Shell內建命令的檔案協助

如: mancd與helpcd的不同

另:關於Shell更詳細的講解,請參考另外幾篇部落格

《四天精通Shell編程》系列:

http://blog.csdn.net/zjf280441589/article/details/17455515

http://blog.csdn.net/zjf280441589/article/details/17467069

http://blog.csdn.net/zjf280441589/article/details/17487351

http://blog.csdn.net/zjf280441589/article/details/17503985

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.