Basic usage
List user privileges
sudo -l
Run the login shell
sudo -i
Non interactive mode, if a password is required for the command, sudo will display an error and exit
sudo -n su
Read the password from the standard input
echo password | sudo -S