協助命令(各種命令區別) 最常用的協助命令 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