⊙ AntiQuark

Truth, Beauty, Charm, Strange

2005/02/03

bash shell tip: cd -

Bash shell tip of the decade: if you type

cd -


(That's a hyphen after the cd) you'll switch to the previous directory you were in. Type it again and you'll return to the directory you just left.

If I had known that five years ago, it would have saved me 10,000 hours of typing by now.



0 Comments:

Post a Comment

<< Home