DEV Community

Cover image for SUDO IN LINUX
Vinoth Kumar
Vinoth Kumar

Posted on Edited on

SUDO IN LINUX

SUDO :
An authorized user to execute commands with administrative (superuser) privileges in Linux. It is commonly used to run system-level commands that require higher permissions, without logging in directly as the root user.

SYNTAX :
sudo [options] command


COMMANDS :

sudo ls /root
Enter fullscreen mode Exit fullscreen mode

EXAMPLE :

sudo nano /etc/hosts
Enter fullscreen mode Exit fullscreen mode

SUBSTITUTE USER :

To switch from your current user account to another user account, most commonly the root user. Once switched, you have the full privileges of that user until you exit the session.

Top comments (0)