How to become a root or superuser in ubuntu

If you want to run a command with superuser or root  which deals with system files you can use


here sudo, sudoedit – execute a command as another user.sudo allows a permitted user to execute a command as the superuser or
another user, as specified in the sudoers file.

for examples :

admin@smartproteam$ sudo cat /var/log/syslog


you can become as root using below command

admin@smartproteam$ sudo -i

root@smartproteam$ cat /var/log/syslog

Related Posts with Thumbnails

Leave a Reply

Your email address will not be published. Required fields are marked *



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment moderation is enabled. Your comment may take some time to appear.