How to go to home directory in Linux? Learn how to change directory in Ubuntu using cd command in Linux Ubuntu Systems.
The /root directory is the home directory of the root account. The root account is also known as root user or the superuser and it is represented by a forward slash ( / ).
How To Go To Root Directory In Ubuntu Terminal
You can go to the root directory on a Linux system by using the cd command. The cd command is known as change directory command.
$ cd /
To navigate to the root user’s home directory, /root, run the command:
$ cd /root
If you are already logged into the root user account, the run:
# cd
You can also use the command cd ~ (note the tilde symbol).