• Global Nav Open MenuGlobal Nav Close Menu
  • Apple
  • Shopping Bag
Search Support
Cancel
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Shopping Bag
Terminal User Guide
Open MenuClose Menu
  • Communities
  • Contact Support
macOS Catalina 10.15
macOS Mojave 10.14
macOS High Sierra
Table of Contents

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:

server1:~ mariah$

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 (~).

Open Terminal

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.

Quit 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 exit command, then press Return.

    $ exit

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.

See alsoExecute commands and run tools in Terminal on MacChange the default shell in Terminal on MacOpen new Terminal windows and tabs on MacUse profiles to change the look of Terminal windows on MacApple Developer website: Command Line Primer
Apple
  1. Support
  2. Terminal User Guide
  3. Open or quit Terminal on Mac
United States
Copyright © 2019 Apple Inc. All rights reserved.
Privacy Policy Terms of Use Sales and Refunds Site Map