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
eg:-
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.
No comments:
Post a Comment