歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> 幫助命令(各種命令區別)

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

日期:2017/3/1 16:20:58   编辑:關於Linux
幫助命令(各種命令區別) 最常用的幫助命令 help --help help cd 查看內置命令的使用 info man 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 passwd No entry for passwd in section 6 of the manual [root@teacher doc]# man 7 passwd No entry for passwd in section 7 of the manual [root@teacher doc]# man 8 passwd No entry for passwd in section 8 of the manual [root@teacher doc]# man 9 passwd No entry for passwd in section 9 of the manual [root@teacher doc] info提供的信息通常要比man所顯示的信息更加完整,也更新一些。 info passwd 查看info信息 info mkdir
Copyright © Linux教程網 All Rights Reserved