[kanchilug] [Tip] Forget the 'cd' command !!!

  • From: "Tha.Suresh" <jemenisuresh@xxxxxxxxx>
  • To: ILUG-C <ilugc@xxxxxxxxxxxxx>, KanchiLug <kanchilug@xxxxxxxxxxxxx>, iitdlug@xxxxxxxxxxxxxxxx, Mlug <glug-meerut@xxxxxxxxxxxxxxxx>
  • Date: Wed, 15 Dec 2010 16:02:58 +0530

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 :)


-- 
Regards,
Tha.Suresh
http://thasulinux.wordpress.com
 

Other related posts:

  • » [kanchilug] [Tip] Forget the 'cd' command !!! - Tha.Suresh