sudo command in Linux with Examples

sudo command in Linux means sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.

sudo command in Linux with Examples

Syntax

sudo -V | -h | -l | -L | -v | -k | -K | -s | [ -H ] [-P ] [-S ] [ -b ] |
[ -p prompt ] [ -c class|- ] [ -a auth_type ] [-r role ] [-t type ]
[ -u username|#uid ] command

On the man page, the describes it

  • sudo – execute a command as another user.
  • man sudo – More details information about sudo command.

sudo command in Linux with Examples

$ sudo yum install nginx

Conclusion

sudo command is a simple command in Linux. It is the most popular in use terminal Linux execute a command as another user. Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published.

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

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