Forget the 'cd' command !!!
Posted 12-15-2010 at 04:58 AM by thasuresh
Autocd:
$ shopt -s autocd
It's a Auto Directory changing command. We can change into any
directory without the use of 'cd' command.So we can utilize the time
of typing "cd" command.
thasu@tha-admin-da ~ $ shopt -s autocd
thasu@tha-admin-da ~ $ Desktop/
cd Desktop/
thasu@tha-admin-da ~/Desktop $ cd
thasu@tha-admin-da ~ $ /var/log/cups/
cd /var/log/cups/
thasu@tha-admin-da /var/log/cups $
To reside the above option as a permanent one, edit the .bashrc file
and add this line "shopt -s autocd" into it.
Enjoy
$ shopt -s autocd
It's a Auto Directory changing command. We can change into any
directory without the use of 'cd' command.So we can utilize the time
of typing "cd" command.
thasu@tha-admin-da ~ $ shopt -s autocd
thasu@tha-admin-da ~ $ Desktop/
cd Desktop/
thasu@tha-admin-da ~/Desktop $ cd
thasu@tha-admin-da ~ $ /var/log/cups/
cd /var/log/cups/
thasu@tha-admin-da /var/log/cups $
To reside the above option as a permanent one, edit the .bashrc file
and add this line "shopt -s autocd" into it.
Enjoy
Total Comments 1
Comments
-
finally! my left middle finger and right thumb can have a long over due break!... or is it the right middle, index, and thumb?
Posted 12-15-2010 at 01:41 PM by lumak