You’ll need an app to run shell commands. Macs come with Terminal, but I use iTerm with
zsh (for nicer highlighting + git integration).
The shell can be a scary place. Start by introducing yourself.
# Identify the user whoami
↑ (up arrow) to cycle through your prior commands.
!! to paste the last command:
# Pretend this command failed due to permissions something something # This will inject your last line and reset the prompt sudo !! # Now the prompt combines the former two lines, hit enter to run it sudo something something