Frequent Question: How Do I Get to Root Directory in Linux Terminal?
Contents

How do I get to the root directory in Linux?

To navigate into the root directory, use “cd /” To navigate to your home directory, use “cd” or “cd ~” To navigate up one directory level, use “cd ..” To navigate to the previous directory (or back), use “cd -”

How do I see the root directory?

Gaining access to a file in the hierarchy requires identifying all the directories/folders in the path from the root directory/folder to that file. In DOS and Windows, the command line symbol for the root directory is a backslash (). In Unix/Linux, it is a slash (/).

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest