Quick Answer: Why Do We Use Sudo in Linux?
Contents

The sudo command is used to give such permissions to any particular command that a user wants to execute once the user enters a user password to give system based permissions.

What is the benefit of sudo?

IMO the major advantages of sudo over su are that sudo has superior logging of what commands were run and sudo gives finer control over what users can do. su is all or none, but sudo can be configured to allow access to some, but not all commands.

What happens when you use sudo?

It runs whatever command you want to run as an administrator. It’s often used to give you the privilege to edit system files (like /etc/hosts ) or to add directories to system directories and so on. … The home page for the sudo command can be found here.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest