Basic Linux Command Example: 


Get help on Linux shopt command.


   Linux shopt command is use to set shell option or unset shell option on Linux system.  The Linux shopt command is one of bash shell built in command.  The command example below show how to get help on Linux shopt command using shell command, this help show information on how to use the Linux shopt command, the shopt command options and the arguments that can be use with Linux shopt command.


Get Linux shopt command help


  Execute help command and the name of Linux command that we want the help file, the example below we execute help command to get help for shopt command.


shopt linux command

[linux@fedora11 ~]$ 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.



      -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.

[linux@fedora11 ~]$


Keywords: shopt, shopt command, linux shopt command, shopt linux command, shopt help, help shopt, command shopt help, help shopt command