Enter administrator commands in Terminal on Mac — by Apple Support
advancedpageLink only (©)
Explains how to run commands with administrator rights using sudo, switch users with su, and why to avoid the root account.
Quick steps
- Prefix the command with sudo
- Use su to switch to an administrator
- Use root only when required
Paraphrased from the source. Menus can differ by version, so check the original for full details.
Source: Enter administrator commands in Terminal on Mac by Apple Support. Licence: Link only (©).
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me