Close Tab in Terminal (macOS)
Press Command + W to close the current tab.
What it does
Closing the tab ends the shell that runs in it. If a command is still running, Terminal asks before it closes, because the command would be stopped. When the window has a single tab, the same keys close the window. Whether a shell that has finished closes its tab by itself is set for each profile, under Shell.
More Terminal shortcuts: Windows & Tabs
- Close window
- Close other tabs
- Close all
- Scroll to top
- Scroll to bottom
All 109 Terminal shortcuts for macOSThe full list has a search and a printable PDF.
Questions
What is the Terminal shortcut for Close Tab on macOS?
⌘W (Command + W). Press it to close the current tab.