cd or cd ~ does not go to the root directory, but to the users home directory. They may be the same, but this is highly unlikely.
In addition,cd - goes back the the previous directory. So, when in a project, type cd to go the your home directory, and cd - to go back to the project directory.
cd
orcd ~
does not go to the root directory, but to the users home directory. They may be the same, but this is highly unlikely.In addition,
cd -
goes back the the previous directory. So, when in a project, typecd
to go the your home directory, andcd -
to go back to the project directory.Correct. Thanks for your detailed explanation so that I don't need to do that :).
Thanks, I am learning too. Thanks for the detailed explaination. I will edit the blog soon! :)