1.help介绍
获得shell内建命令一个小的使用总结,其与whatis命令比较像,但是help命令是linux内建命令
[root@elasticsearch ~]# whatis help
help (1) - bash built-in commands, see bash(1)
[root@elasticsearch ~]#
2.样例
命令:
help shopt
[root@elasticsearch ~]# help shopt
shopt: shopt [-pqsu] [-o] [optname ...]
Set and unset shell options.
Change the setting of each shell option OPTNAME. Without any option
arguments, list all shell options with an indication of whether or not each
is set.
Options:
-o restrict OPTNAMEs to those defined for use with `set -o'
-p print each shell option with an indication of its status
-q suppress output
-s enable (set) each OPTNAME
-u disable (unset) each OPTNAME
Exit Status:
Returns success if OPTNAME is enabled; fails if an invalid option is
given or OPTNAME is disabled.
[root@elasticsearch ~]#