Run command as superuser:
sudo command
Run command as another user:
sudo -u user command
Run command with specified initial group:
sudo -g group command
Display a list of available sudo
commands:
sudo -l
Run command with the specified prompt:
sudo -p "Enter password:" command
Recreate the user's environment:
sudo -i
Run command with specified user and group:
sudo -r user:group command