LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > thasuresh
User Name
Password

Notices

Rate this Entry

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
Posted in Uncategorized
Views 1868 Comments 1
« Prev     Main     Next »
Total Comments 1

Comments

  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 01:41 PM by lumak lumak is offline
 

  



All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement

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