by benmanbs · 8y ago · 0 comments
> Go back too much? Use ls to see what’s in the directory you’re in, and then use cd to head back to where you want to go:
In my experience, if I get lost with `cd`, the best way for me to figure out where I am is not to execute an `ls` (because I might be in a folder with no contents, or somewhere with ambiguous content), I would recommend `pwd` ("print working directory").