協助命令(各種命令區別)

來源:互聯網
上載者:User

協助命令(各種命令區別) 最常用的協助命令 help --helphelp cd 查看內建命令的使用infoman help cd 查看內建命令的使用 獲得協助的途徑: man        --help百度   google 打電話(朋友)  書籍  論壇  QQ群 交流 本著最短時間能解決問題的原則,拖的越久損失越大。 --help 和 help 兩者都可用來獲得協助資訊,但有明顯差別help:顯示bash shell 內部命令的簡單資訊。使用help不帶任何參數將顯示bash shell所有內建的命令。bash shell內建命令包括:alias,cd,echo,exit,help,history,pwd,set。。。。。。--help:顯示的是一個簡略的命令協助(可以查到大部分命令,但不是所有命令)。 [root@teacher ~]# passwd --help             查看passwd的使用方法Usage: passwd [OPTION...] <accountName>  -k, --keep-tokens       keep non-expired authentication tokens  -d, --delete            delete the password for the named account (root only)  -l, --lock              lock the password for the named account (root only)  -u, --unlock            unlock the password for the named account (root only)  -e, --expire            expire the password for the named account (root only)  -f, --force             force operation  help --help所提供的資訊常太過於簡略,有時不能滿足使用者的需求,所以必須用到man(manual指南的意思) man man passwd 預設情況下是查命令      【用法:man 待查詢命令】man page放在/usr/share/man/man1目錄下man 5 線上獲得文檔資料      【用法:man 5  待查詢命令】man page放在/usr/share/man/man5目錄下[root@teacher doc]# man 1 passwd  查看passwd命令的說明[root@teacher doc]# man 5 passwd  查看/etc/passwd檔案的說明,詳細介紹 [root@teacher doc]# man 6 passwdNo entry for passwd in section 6 of the manual[root@teacher doc]# man 7 passwdNo entry for passwd in section 7 of the manual[root@teacher doc]# man 8 passwdNo entry for passwd in section 8 of the manual[root@teacher doc]# man 9 passwdNo entry for passwd in section 9 of the manual[root@teacher doc] info提供的資訊通常要比man所顯示的資訊更加完整,也更新一些。info  passwd 查看info資訊info  mkdir  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.