DEV Community

Discussion on: ๐Ÿง Linux Commands - A Complete Handbook for beginners ๐Ÿ’ป

Collapse
 
cyberjack profile image
CyberJack • Edited

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.

Collapse
 
peter279k profile image
peter279k

Correct. Thanks for your detailed explanation so that I don't need to do that :).

Collapse
 
kaiwalyakoparkar profile image
Kaiwalya Koparkar

Thanks, I am learning too. Thanks for the detailed explaination. I will edit the blog soon! :)