| by Arround The Web | No comments

How to Use sudo in Linux

The sudo or “superuser do” utility is your Linux system’s prominent feature that lets you perform operations with administrative privileges. For instance, you’re an ordinary system user and want to execute a program requiring root user permissions. This is what sudo helps you achieve by which you can perform administrative tasks without direct access to the root account.

The sudo utility is essential for security, accountability, and system access control. System administrators can configure sudo to provide different permissions(read, write, and execute) to various users. Hence, you also must be fully aware of sudo and its use cases. So this short guide is all about ways to use sudo in Linux.

How to Use sudo in Linux

Let’s start with the basic command like apt update in which you need a sudoer access to perform the update task:

sudo apt update

sudo-apt-update-command

If you want to check the what type of command a current user can run then please run the below command:

sudo -l

sudo-l-command-in-linux

A Quick Summary

Sudo in Linux is a powerful utility for performing tasks as a root user, so it is a crucial command to remember. This short guide demonstrates how you can run any command using sudo that merely requires you to enter the password to execute successfully. Moreover, you can input a password one time, and it would last for the whole terminal session.

Share Button

Source: linuxhint.com

Leave a Reply