Pergunta de entrevista da empresa Amazon

Linux questions: How is sudo different from Su? What is sudo and why would you use it?

Respostas da entrevista

Sigiloso

2 de set. de 2020

su allows you to switch users. su - puts you in the switched users home dir. sudo gives users listed in the sudoers file, elevated privileges'.

4

Sigiloso

10 de mai. de 2020

Both Su and Sudo allow you to run a command on the Linux system. The difference is, Su prompts you to log in as the root user before running a command, on the other hand, you can use Sudo to run a command without logging into your administrator account.

6