Question: How to Get to Root Directory Linux?
Contents File & Directory Commands to Navigate into the Root Directory, Use “Cd /” to Navigate to Your Home Directory, Use “Cd” or “Cd ~” to Navigate up One...
Contents
File & Directory Commands
- 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 get to the root directory?
To locate the system root directory:
- Press and hold the Windows key, then press the letter ‘R’. (On Windows 7, you can also click start->run… to get the same dialog box.)
- Enter the word “cmd” in the program prompt, as shown, and press OK.
How do I get to the root directory in Unix?
The most commonly used options are listed below.
- cd — Returns you to your login directory.
- cd – — Returns you to your previous working directory.
- cd ~ — Also returns you to your login directory.
- cd / — Takes you to the entire system’s root directory.
- cd /root — Takes you to the home directory of the root user.