Get Root Privileges Using the sudo Command.

By | December 31, 2018


The sudo command

The sudo (super do) command in Linux is used to give certain user(s) only a few super (root/administrator) permissions. And with those granted permissions a regular user can issue root commands to carry out any administrative tasks on the system.

If you want to use sudo to run commands as a regular user, you’d prepend the sudo command to the command you intend to execute using this format:

sudo <command>

For example trying to install any application (without sudo command) would return an error because such privilege is left for the root user;


When a user enters the sudo command into the terminal, he must provide an authentic password, after which he can reuse that command without entering a password for a specific period of time (five minutes is the default).

When an unauthorized user attempts to use a sudo command, an error is returned by the terminal and its logged by the system. This log can help a Linux system administrator to monitor it usage on the system.

Happy Linux’NG!


I agree to have my personal information transfered to MailChimp ( more information )

Join over 10,000 visitors to receive Open Source tips, trick, news, tutorials, programming and more.

We hate spam. Your email address will not be sold or shared with anyone else.

MUST READ  SSHDroid: Sharing files between android and Linux

Tell us what you think

This site uses Akismet to reduce spam. Learn how your comment data is processed.