The IT Alchemy Lab really doesn't have any set "purpose" to speak of. It is more about the IT technologies and issues I come across in my day-to-day business, meetings and chats (lunches, coffee and drinks) with my IT colleagues and friends.

Blog Archive

Tuesday, September 7, 2010

Command Line equivalent of "cd -"

It's not as though I have simply neglected Phase II of Memory management, free time has been unkind.

I Being a longtime Solaris and Linux junky, when I'm bound to use Windows, I do almost (...I did say almost) everything from the command line. One feature I have always missed from the windows command line world was "cd -".  I came across a "fix" for that yesterday.

cd "\Program Files\Java\jdk1.5.0_22"
pushd .
cd "\Documents and Settings\All Users"
popd

This will put you back at jdk1.5.0_22, the only downside to that is anytime you want to pop the directory, you have to first push it.  Not the greatest solution, but a solution none the less.

No comments:

About Me

My photo
Don't tell people how to do things, tell them what to do and let them surprise you with their results. --General George S. Patton
Open Source Links | Sourceforge | Slashdot | Open Source