Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Blogs > thasuresh
User Name


Rate this Entry

Forget the 'cd' command !!!

Posted 12-15-2010 at 05:58 AM by thasuresh


$ 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.

Posted in Uncategorized
Views 2065 Comments 1
« Prev     Main     Next »
Total Comments 1


  1. Old Comment
    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 02:41 PM by lumak lumak is offline


All times are GMT -5. The time now is 11:57 AM.

Main Menu

Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration