Opening the terminal
- Click the Spotlight icon in the upper right-hand corner of the screen

- Begin typing Terminal until you see the Terminal application appear in the search results

- Press Return to open the Terminal application
- A new terminal window will appear
- Type commands and press Return to execute them

Running commands as an administrator
Commands that require administrative rights begin with the word sudo.
The first time you enter a sudo
command you will be prompted to enter the Mac OS X user's password.
Not all macOS users have administrative rights. You might need to log into the computer as a different user to run sudo commands.
As you type the password you won't see anything change on the screen. This is a security feature, and rest assured your password is being received.
Press Return and the command will execute with administrative rights. If you mis-typed the password, you will see a message asking you to re-enter the password:
Password:
Sorry, try again.
Password:
BASH
Once you've authenticated with administrative rights you can run further commands using sudo
without the need to re-enter the password. If you go five minutes without entering a command, however, you will need to re-enter your password for the next sudo
command.
Closing the terminal
- Type
exit
- Press Return
- Quit the Terminal application