To following article will describe how to access root terminal and hence gain root access to the Ubuntu 20.04 Focal Fossa Desktop/Server system.
In this tutorial you will learn:
- How to open terminal with root privileges
- How to gain root access using existing terminal session
Software Requirements and Conventions Used
|Category||Requirements, Conventions or Software Version Used|
|System||Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa|
|Other||Privileged access to your Linux system as root or via the
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
Open terminal as root on Ubuntu 20.04 step by step instructions
- No matter what your situation, it is unlikely that you need to open terminal as root user. However, what you most likely need is to gain root access as a root user using a currently opened terminal session.
Most likely you currently have sudo privileges to your Ubuntu 20.04 system. This means that you can gain root assess by simply opening a new terminal and using the
sudo -icommand to gain privileged administrative access. Consider the following example:
$ sudo -i [sudo] password for linuxconfig: root@linuxconfig-org:~# whoami root
#sign at the beginning of your shell prompt indicates that you have gained a root access to your Ubuntu system.
In case you insist on having to open terminal window as a root user you can once again use the
sudocommand to do so. Simply execute the following command from your current terminal session:
$ sudo gnome-terminal