Skip to content

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

  1. Prefix the command with sudo
  2. Use su to switch to an administrator
  3. Use root only when required

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on support.apple.com

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

terminalsudoadmin

More in Terminal