Advanced

Change your shell properties with Linux shopt command

Posted by linuxnix on · Post a comment
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

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments

No comments yet. Be the first.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post