Change your shell properties with Linux shopt command
Bash shopt command explained with examples. Shopt(SHell OPTions) is a built-in command to change the properties of a shell such as..Its history behavior, Spell check, Enable special characters for echo command by default and many more.
|
|
Bash shopt command explained with examples
Shopt(SHell OPTions) is a built-in command to change the properties of a shell such as..
Its history behavior
Spell check
Enable special characters for echo command by default
and many more.
This is an excellent command which give more control on Shell for you when you are working on bash and sh shells. This command is available after bash v2 and not available in other shells such as ksh, csh etc. Lets get familiarize with shopt command with some examples.
Example1: To enable an option with shopt you have to use -s (Set) option
shopt -s optiontype
Example..
shopt -s nullglob
Full Story |
This topic does not have any threads posted yet!
You cannot post until you login.