Posted in bash

Changing directories

Everyone knows the command cd – everyone uses it several times a day. (OK – not everyone, but every Linux user.) Most of us know, that we can change back to the last directory with

$ cd -

E.g.:

$ pwd
/home/maker/docs/sensors
$ cd /opt/sensors/bmp280
$ pwd
/opt/sensors/bmp280
$ cd -
$ pwd
/home/maker/docs/sensors

But what if you cd in your project directory and then need to change back into your docs directory? You have to type the whole path. Or do you?

Continue reading “Changing directories”