Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I often open my terminal with multiple tabs, and exit with exit command in Ubuntu.
What about mac? Except the Cmd+w.

share|improve this question
up vote 2 down vote accepted

Not sure if you have such a command, but I believe you can set up Mac OS X terminal to close when you type exit.

This will close the window but not the terminal app. Please have a look at this question about how to also quite the terminal app when typing exit.

share|improve this answer
So there's no native command like exit? Well, I see. Thank you, @OleBrun. :) – Kjuly Dec 15 '11 at 8:07

I also had this question, but I really don't like the osascript hack. Finally I found this answer at Ask Different. I think it's a native.


The above screenshot shows a Terminal dialog in German, which when translated roughly means:

the end of the shell
conclude if no error occurred.

So it looks like you could configure Terminal to close when the shell is terminated.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.