Quick way to switch between folders in the terminal

How to move and forward between your present and previous directories

A couple of days ago a found a really neat trick you can use when you are in the terminal window.

cd -

It will move you from the directory you were in to the directory you were in last, typing it again will bring you back to that first directory.

For example

cd /directory_one
cd /directory_two
cd -  (you are now in directory_one)
cd - (you are now in directory_two)

I’ve recorded a short video to show you.

Recent posts View all

EmailStudents

Unsolicited Hiring Tips

If you're going to email a company out of the blue, help them to help you with these three tips

Reviews

Review: How data happened

A fun read for anyone interested in data or the social history around it