su

Switch user

high risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
Safer / dry-run alternatives
sudo -u appuser <command>Prefer sudo for auditability
What it does

`su -` starts a login shell as the target user.

Common flags
FlagMeaning
-Login shell
-cRun one command
-sShell to use
Examples
su - appuserBecome appuser · explain & risk-check →
su -c "id" appuserOne command as appuser · explain & risk-check →
Related
sudo whoami
Open the full explainer →More in Users, Permissions & Security

Reference text is hand-written and may be incomplete — check man su for your version. Test destructive commands on a non-production system first.