//View Tip #200
Similar Tips
There are no more tips with these tags. Perhaps you'd like to submit one, or browse the archives.


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
Use pushd and popd to store directories to go back to later:

Blackbird:~ flsw$ pwd
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 »


Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit