Educating yourself does not mean that you were stupid in the first place; it means that you are intelligent enough to know that there is plenty left to 'learn'. -Melanie Joy

Saturday, 18 August 2012

Auto Correct Directory Names / Shell Options

August 18, 2012 Posted by Dinesh , , No comments
"shopt" can be used to correct typos in cd command. you can use "cdspell" which will auto correct the directory name you have entered. Usage:   shopt -s cdspell   ( -s : set  -u : unset) $ cd /usr/local/sben     will results in bash: cd: /usr/local/sbEN: No such file or directory but once you have enabled cdspell option, $ cd /usr/local/sben  ...