-
type <command>: 判斷命令的類型: builtin, alias, 二進(jìn)制文件或函數(shù) -
which: 顯示可執(zhí)行文件的路徑 - 幫助信息:
-
help <builtin>查看 shell 內(nèi)建命令的幫助 man <program>-
apropos通過關(guān)鍵字在man中搜索信息,相當(dāng)于man -k -
whatis對命令的簡單描述 -
info對命令的詳細(xì)描述,info coreutils -
/usr/share/doc/存放著許多文檔,zless可以查看未解壓的.gz文本
-
alias name='string'unalias name
type
[admin@localhost ~]$ type ls
ls is aliased to `ls --color=auto'
[admin@localhost ~]$ type echo
echo is a shell builtin
which
[admin@localhost ~]$ which python
/usr/bin/python
man
man 會將幫助文檔分類
man page
man 5 systemd.unit 默認(rèn)會顯示類型號最小的幫助信息,但可以手動指定
apropos

apropos
Linux 自帶的各種核心工具
info coreutils
前面帶有 * 的是超鏈接,按 Enter 可以進(jìn)入相關(guān)專題
按 ? 會出現(xiàn)幫助信息

coreutils
zless
直接查看未解壓的文本

zless
alias
$ type now # 檢查命令有沒有被占用
-bash: type: now: not found
$ alias now="date '+%Y/%m/%d %H:%M:%S'" # 創(chuàng)建新命令
$ now
2018/04/22 19:02:59
$ unalias now # 移除新命令