
Ok this is a quick one, but useful!
To return to the previous working directory, simply type:
cd -
and hit enter.
Cool!
Related posts:

Ok this is a quick one, but useful!
To return to the previous working directory, simply type:
cd -
and hit enter.
Cool!
Related posts:
Nice. I never knew that. That will save some keystrokes for sure.
Maybe I’m a noob but I learned about sudo !! not long back.
If you’ve never seen that, it just repeats your last command so if you tried to run a command but forgot to sudo first, just do sudo !! and save some keystrokes.