sudo A command used to execute a command with superuser (or other user) privileges.
| command | Overview |
|---|---|
| -A | Use the command for entering the password (the command is ""/etc/sudo.conf or the environment variable SUDO_Set with "ASKPASS") |
| -n | Do not prompt for a password (commands that require a password cannot be executed with an error) |
| -p string | Specify the prompt when entering the password (default is "":"symbol) |
| -S | Read password from standard input instead of terminal (newline is required at the end of password) |
| -k | Disable the stored credentials (you will need to enter the password the next time you run sudo). Can be used with commands |
| -K | Completely erase the stored credentials |
| -V | Update saved credentials |
| -u user | The user when executing the command is the "user name" or "user ID (user ID).#Specify with "symbols and numbers)" |
| -g group | The group when executing the command is the "group name" or "group ID (#Specify with "symbols and numbers)" |
| -P | Execute the command in the group to which the user who executes sudo belongs |
Recommended Posts