//Random Tip
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow

You are viewing a random entry, refresh your browser to change.

Use pushd and popd to store directories to go back to later:

Blackbird:~ flsw$ pwd
/Users/flsw
Blackbird:~ flsw$ pushd tst	#current dir becomes tst 
~/tst ~
Blackbird:~/tster flsw$ pushd	#no argument moves back and forth
~ ~/tster


popd +n removes n entries from the stack without changing directory
pushd +n 'rotates' the stack so the nth directory moves to the top becoming the current directory.


View Comments »




Comments 

Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit