Okay, most of us spent quite a bit of time in a terminal window, right?
Now navigating between directories in terminal can be cumbersome sometimes.
For example you want to navigate to the "Terminator" directory,
~/Downloads/Videos/Movies/Action/Terminator/
You will have to enter,
cd Downloads/Videos/Movies/Action/Terminator/
I know you can use Tab-completion but even with it you'll agree there are plenty of key-presses involved here.
Okay, now assume you are in the "Terminator" directory and you want to go back to the "Videos" directory. You'll have to do,
cd "../ ../"
See, it's cumbersome! Here is the easiest and smartest method to change directories in terminal.
First we need to install a tiny application,
sudo apt-get install go2
After the installation has completed, in your terminal run,
go2; source $HOME/.bashrc
That's it! Now you can navigate to "Terminator" directory easily like this,
go2 Terminator
Or if you are in a hurry,
Go2 Term
And from "Terminator" directory going back to the "Videos" directory is just as easy,
go2 Videos
If in hurry,
go2 Vid
Now if you have two directories "Downloads" and "Documents" and you do,
go2 Do
go2 will prompt you to select one of them,
a: ~/Documents
b: ~/Downloads
If you want to select "Documents" you need to enter "a" and for selecting "Downloads" you enter "b". Simple!!!
For more info,
man go2
Cheers!!!