sudo
Linux · Users and permissions · available in the simulator
What it does
Execute a command as administrator (root).
Syntax
sudo [opciones] comando
Options and parameters
-iRun a login shell as root.
-u USERRun as another user
-kRevoke cached credentials.
-uRun the command as the specified user.
sudo -u ana ls /home/ana-sRun an elevated shell.
-lList the commands the user is allowed to run.
Usage examples
sudo rebootsudo -isudo -u ana lssudo apt updatesudo -u otro usuario comandosudo -u ana ls /home/ana