Wednesday, 5 February 2014

To automatically correct mistakes in directory names

Use shopt -s cdspell to correct the mistakes in the cd command automatically.

cd /etc/mall
-bash: cd: /etc/mall: No such file or directory

# shopt -s cdspell
# cd /etc/mall
# pwd
/etc/mail

No comments:

Post a Comment