cd - returns you to the last directory that you were. eg.
cd ~/Documents cd ~ cd /
Now you are in '/', and if you run 'cd -', you will be in '~'. BTW, run 'cd -' again, you will return to '/', but not '~ / Documents'
Jie Zhang Aug 18 '17 at 14:06 on 2017-08-18 14:06
source share