Pregunta de entrevista de Amazon

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

Respuestas de entrevistas

Anónimo

2 sep 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

Anónimo

10 may 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