[[email protected] ~]# help 內建命令
[[email protected] ~]# man help
BASH_BUILTINS(1)
BASH_BUILTINS(1)
NAME
bash,:,.,[, alias, bg, bind, break, builtin, caller, cd, command, compgen,complete, compopt, continue, declare, dirs, disown, echo, enable, eval, exec,exit, export,false, fc, fg, getopts, hash, help, history, jobs, kill, let, local, logout,mapfile, popd, printf, pushd, pwd, read, readonly, return, set, shift, shopt,source, suspend, test, times, trap, true, type, typeset, ulimit, umask,unalias, unset, wait - bash built-in commands, seebash(1)
...省略部分內容...
#這裡列出的命令就是所有的Shell內建命令
[[email protected] ~]# help ls
-bash: help: no help topics match 'ls'.Try 'help help' or 'man -k Is' or 'info ls'.
#這裡會報錯,報錯資訊是"help無法得到 ls 命令的幫助,請査看 help 幫助,或者用 man 和 info 來査看ls的幫助資訊"
[[email protected] ~]# ls --help
這種方法非常簡單,輸出的幫助資訊基本上是 man 命令的資訊簡要版。