How to switch between Terminal windows on Mac (Terminal, iTerm2 and Ghostty)
One terminal window runs the dev server. Another tails a log. A third is SSH'd into staging, and a fourth is where you actually type. Press Cmd-Tab and you get as far as "Terminal" — whichever window macOS decides that means. If you want to switch between Terminal windows on a Mac without reaching for the mouse, every terminal app has a way to do it; they just don't agree on what it is. Below are the built-in shortcuts for Apple's Terminal, iTerm2 and Ghostty, how to stop the windows looking identical, and a switcher that handles the jump from the terminal to the editor and back.
The short answer
| Terminal app | Next / previous window | Straight to a window | Tabs |
|---|---|---|---|
| Terminal (Apple) | ⌘ + ` / ⇧⌘ + ` |
Window menu | ⌃⇥ / ⌃⇧⇥ |
| iTerm2 | ⌘ + ` |
⌘⌥1–⌘⌥9 |
⌘1–⌘9, ⌘← / ⌘→ |
| Ghostty | ⌘ + `, or bind goto_window |
— | bind goto_tab |
| Any of them, plus every other app | Let's Switch: ⌥⇥ |
Live previews, most recent first | — |
How to switch between Terminal windows (Apple's Terminal)
Apple documents two window shortcuts for Terminal: Next Window is
⌘ + ` (the key above Tab on a US keyboard) and Previous
Window is ⇧⌘ + `. With two windows open, that's all you
need — tap once and you're in the other one.
With four or five it turns into guesswork, because there's no list and no preview: tap, look, wrong log, tap again. For those days, open the Window menu in the menu bar. Every open Terminal window is listed there by its title, and picking one brings it forward.
Inside a window, tabs have their own shortcuts: ⌃⇥ for the next tab
and ⌃⇧⇥ for the previous one, and ⇧⌘ + \ shows every tab as a
grid you can click into. If your windows are really one task each —
server, logs, shell — tabs in a single window are often the calmer
setup, and ⌘D splits a window into two panes when you want to watch
two things at once.
iTerm2: jump to a window by number
iTerm2 keeps macOS's ⌘ + ` but adds something better: ⌘⌥
plus a number goes straight to that window, and ⌘ plus a number
goes straight to a tab in the current window. ⌘← / ⌘→ (or ⌘{ /
⌘}) step between tabs, and ⌘⌥ with an arrow key moves between split
panes.
Numbers only help if you know which window is which. Two things make that easier:
- Name your sessions. Session → Edit Session lets you give a
session its own title, so "staging" says staging instead of
zsh. - Change the modifier if
⌘⌥collides with something. Settings → Keys is where iTerm2 keeps its global shortcuts, including which modifier selects windows and tabs by number.
Ghostty: bind goto_window yourself
Ghostty is a native macOS app, so ⌘ + ` cycles its windows like
any other. Beyond that, Ghostty prefers you write the binding: the
goto_window action takes next or previous (macOS only), and
goto_tab jumps to a tab by index starting from 1. A line in your
config is all it takes — for example:
keybind = cmd+shift+right_bracket=goto_window:next
Pick keys that don't clash with your shell or editor, and run
ghostty +list-keybinds --default to see what's already bound.
The terminal you summon instead of switch to
Some terminal windows don't deserve a place in the rotation at all —
the scratch shell you open for one git status and close again. Both
iTerm2 and Ghostty can turn that into a drop-down terminal that slides
in on a hotkey and hides when you're done:
- iTerm2: Settings → Keys → Create a Dedicated Hotkey Window. It creates a "Hotkey Window" profile; set the key there.
- Ghostty: bind
toggle_quick_terminalto a global key, e.g.keybind = global:cmd+backquote=toggle_quick_terminal. Global bindings need the Accessibility permission.
That's one fewer window to step past every time you switch, which helps more than any shortcut.
Make the windows easier to tell apart
Every switcher — the Window menu, iTerm2's numbers, a preview-based one — is only as good as what it can show you. Spend two minutes here:
- Put the directory or host in the title. Terminal's Settings →
Profiles → Window controls what the title shows (working directory,
running process and so on). Many shells also set the title from the
prompt; if yours shows only
zsh, that's the setting to look at. - Use a different profile for remote work. A red-tinted profile for production SSH sessions is the cheapest safety habit in computing.
The faster way: one switcher for the terminal and everything else
The trip that hurts usually isn't terminal to terminal. It's terminal →
editor → browser with the docs → back to the same terminal window,
the one tailing the log. Cmd-Tab switches apps, so "back to Terminal"
lands on whichever window macOS picks, and ⌘ + ` only helps
once you're already there.
Let's Switch is a keyboard window switcher made for this
loop. Hold ⌥⇥ and you get a live preview of every open window across
apps and monitors, most recently used first — so one tap and
release always takes you back to the window you just left, whether it's
a terminal, an editor or a browser. When you only want terminal
windows, ⌥ + ` cycles the current app's windows in the same
overlay, with previews instead of blind steps. Both are in the free
version, and it works the same with Terminal, iTerm2 or Ghostty.
Let's Switch Pro adds an ⌥Space search palette: type
"stag" and jump to the staging window by its title; press ⌥Space
again and the same box launches apps. It's $9.99 once — no
subscription, no account, up to 20 devices per key, no telemetry. To be
fair about the limits: it works within your current Space, so a
terminal parked on another desktop won't appear, and it needs macOS 14
Sonoma or later. If you want something free and open source, AltTab is
the long-standing choice.
⌘ + ` |
iTerm2 ⌘⌥-number |
Let's Switch | |
|---|---|---|---|
| Terminal windows | Yes | iTerm2 only | Yes, any terminal app |
| Other apps' windows too | No | No | Yes |
| Shows a list or preview | No | No (title numbers) | Live previews |
| Most recent first | No | No | Yes |
| Price | Built in | Free app | Free; Pro $9.99 once |
And if you want the terminal on the right third of the screen and the editor on the left two thirds, Let's Tile does that from the keyboard too — see our guide to switching VS Code windows for the editor half of the same workflow.
Frequently asked questions
What is the shortcut to switch between Terminal windows on Mac?
⌘ + ` goes to the next Terminal window and ⇧⌘ + ` to
the previous one. The Window menu lists every open window by name.
Why does Cmd-Tab not switch between my Terminal windows?
Cmd-Tab switches applications, and every Terminal window belongs to the
same app. Use ⌘ + ` inside the app, or a window switcher such
as Let's Switch to reach a specific window from anywhere.
How do I go to a specific iTerm2 window?
Press ⌘⌥ and the window's number, e.g. ⌘⌥2. ⌘ and a number
selects a tab in the current window instead.
⌘ + ` does nothing on my keyboard. Why?
On many non-US layouts the backtick lives on a different key. Check
System Settings → Keyboard → Keyboard Shortcuts for "Move focus to next
window" and record a key that suits your layout.