Forrest logo
back to context overview

sudo

List of commands for sudo:

  • sudo:tldr:2b882 sudo: Run a command as another user and/or group.
    $ sudo --user=${user} --group=${group} ${id -a}
    try on your machine
    explain this command
  • sudo:tldr:76d02 sudo: List the allowed (and forbidden) commands for the invoking user.
    $ sudo --list
    try on your machine
    explain this command
  • sudo:tldr:a3f5f sudo: Launch the default shell as the specified user, loading the user's environment and reading login-specific files (`.profile`, `.bash_profile`, etc.).
    $ sudo --login --user=${user}
    try on your machine
    explain this command
  • sudo:tldr:d6ad7 sudo: Launch the default shell with superuser privileges and run login-specific files (`.profile`, `.bash_profile`, etc.).
    $ sudo --login
    try on your machine
    explain this command
  • sudo:tldr:ed3b7 sudo: Edit a file as the superuser with your default editor.
    $ sudo --edit ${-etc-fstab}
    try on your machine
    explain this command
back to context overview