Pages

Monday, March 5, 2012

Use shopt In Linux

Share it Please

shopt is used in Toggle the values of variables controlling optional shell behavior.We can use cdspell along with Shopt to automatically correct mistyped directory names on cd
like

[root@vx111a ~]# shopt -s cdspell
[root@vx111a ~]# cd /var/ttp
/var/tmp
[root@vx111a tmp]# cd /var/tmp
[root@vx111a tmp]# cd /var/fmp
/var/tmp
[root@vx111a tmp]# cd /var/fup
/var/ftp

No comments :

Post a Comment