How to login as root / superuser in ubuntu linux ?

ROOT

Open up your terminal (ctrl+alt+t) and enter this command.

sudo su

enter your password and now you are root user! Notice the $ prompt has changed to #.

aman@vostro:~$ sudo su
[sudo] password for aman:
root@vostro:/home/aman#

Now, you don't need to use sudo anymore. for eg. now simply use apt-get update instead of sudo apt-get update.

You must be very cautious being a root user.
To come back to your normal $ prompt hit ctrl+d.


Comments

Popular posts from this blog

How to install python-gst (pygst) in ubuntu 16.04

How to make a gui Calculator in Python using Tkinter

How to Install Antlr4 in Ubuntu/Linux