commands
sudo — request delegated command execution
Checks configured policy for requested execution as another identity. -l lists privileges under policy; -u selects target user. Authentication may be required. Example is VM-only policy inspection; no policy changes. Example assumes a fresh account lab fixture; VM-only examples require explicit authorization.
Formal Syntax & Structure
linux syntaxlinux
sudo [OPTION] COMMAND [ARG...]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -l | option | list privileges |
| -u | option | target user |
| COMMAND | operand | authorized command |
| ARG | operand | arguments |
Return Value
exit status and output
Checks configured policy for requested execution as another identity. -l lists privileges under policy; -u selects target user. Authentication may be required.
Working Example
Example Snippetlinux
# Authorized disposable VM onlysudo -l