sudo command

NAME 
   sudo, sudoedit - the Execute the Command AS A Another the User 

SYNOPSIS
sudo (option) (parameters)
   -b: executing instructions in the background; 
   -h: Display help; 
   -H: HOME environment variable to the HOME environment variable new identity; 
   -k: the end of the validity period of the password, that is, they need to enter the next time you run sudo password; 
   the -l: lists the current users of executable instructions can not be executed with; 
   -p: password change prompt inquiry; 
   -s <shell>: Executes the specified shell; 
   -u <user>: to specify the user as a new identity of. If coupled with this parameter, then the default as root as a new identity; 
   -v: Password extend the validity of five minutes; 
   -V: Display version information. 

Example:
sudo -u the User the Command // execute command to specify the user
sudo -l // View user sudo privileges   

 

 

 

Guess you like

Origin www.cnblogs.com/imcati/p/11588222.html