Use shopt -s cdspell to correct the typos in the cd command automatically as
shown below.

$ cd /var/vmall
-bash: cd: /var/vmall: No such file or directory
$ shopt -s cdspell
$ cd /var/vmall
$ pwd
/var/vmail

Here actually i mistyped 'vmail' as 'vmall'.

Enjoy!

 

Leave a Reply

*

Search