Open or quit Terminal on Mac
Each window in Terminal represents an instance of a shell process. The window contains a prompt that indicates you can enter a command. The prompt you see depends on your Terminal and shell preferences, but it often includes the name of the host you’re logged in to, your current working folder, your user name, and a prompt symbol. For example, if a user named mariah is using the default Bash shell, the prompt appears as:
This indicates that the user named mariah is logged in to a computer named server1, and her current folder is her home folder, indicated by the tilde (~).
On your Mac, do one of the following:
Click the Launchpad icon in the Dock, type Terminal in the search field, then click Terminal.
In the Finder , open the /Applications/Utilities folder, then double-click Terminal.
In the Terminal app on your Mac, choose Terminal > Quit Terminal.
Quit a shell session
In the Terminal window running the shell process you want to quit, type the
exitcommand, then press Return.
This ensures that commands actively running in the shell are closed. If anything’s still in progress, a dialog appears.
If you want to change the shell exit behavior, see Change Profiles Shell preferences.