If you found that useful you may be interested in this too:
You can use .. at the start of a path to step back and then forward. So
You can use wildcards too. Very useful when folder names are long or have spaces.
This only works if the folder name up to the wildcard is unique within the current folder. If there was a folder "Projects" in the root of C: this would not have worked. You would have to have entered cd prog* before it would work.
And you can combine the two.
You can also chain multiple backward steps together as long as you separate them with a backslash (or forward slash within Ruby code).