Change your shell properties with Linux shopt command

Posted by linuxnix on Aug 9, 2012 5:13 PM EDT
The Linux Juggernaut; By Surendra Anne
Mail this story
Print this story

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

  Nav
» Read more about: Groups: Fedora, GNU, Linux, Red Hat, Ubuntu

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.