« Home | Get the hidden files » | Chrooted SSH HowTo » | How to create IP-IP tunnel between FreeBSD and Lin... » | How can I have two default routes? » | Revealing your routing tables » | Where do the IP addresses come from? » | Just what is routing? » | Mysql Database Backup Script » | Listing files by size » | Where am i always » 

Monday, March 20, 2006 

Bash shell option

If you are using bash shell. There is a way to cd a particular directory even if you spelled incorrectly on the command line. Set the shell option to:

shopt -s cdspell

Suppose you want to cd to "cd /tmp" and you have miss typed to "cd /pmp" still it will cd to "cd /tmp".

This setting will be very usefull if you have a long named directory.

Links to this post

Create a Link