“shopt -s cdspell” : Automatically correct mistyped directory names on cd

On March 11, 2010, in cdspell, directory, mistyped, shopt, by Dipin Krishna

Use shopt -s cdspell to correct the typos in the cd command automatically asshown below. $ cd /var/vmall-bash: cd: /var/vmall: No such file or directory$ shopt -s cdspell$ cd /var/vmall$ pwd/var/vmailHere actually i mistyped ‘vmail’ as ‘vmall’. Enjoy! ————————————————————————— The GNU/Linux Advanced Administration: In this ebook “The GNU/Linux Operating System”, the main contents are related […]

 

Search