Create a New Terminal Window from a Tab
In this article
Yes, you can create a new terminal window directly from an existing tab in most modern terminal emulators, and the exact method depends on your operating system and terminal application. On macOS Terminal, press Shift+Command+N to open a new window, while on Linux GNOME Terminal you press Shift+Ctrl+N. This article explains the shortcuts, menu options, and alternative methods across the most common terminal emulators, plus how to customize them.
Why You’d Want a New Window from a Tab
Terminal tabs and windows both give you separate shell sessions, but they serve different workflows. A tab keeps multiple sessions in one window, saving screen space and making it easy to switch with Ctrl+Tab or Cmd+`. A new window is useful when you want to:
- Drag a session to a different monitor while keeping your main workspace intact.
- Separate a long-running process (like a server or a build watch) from your primary work so you can close other tabs without killing it.
- Compare output side-by-side from two different directories or environments.
- Use a different working directory or shell profile without changing your current tab.
The key point is that a new window is not a copy of the tab – it is a fresh shell session that starts in the same working directory (in most emulators) and inherits the same environment variables, but it is otherwise independent.
Keyboard Shortcuts by Terminal Emulator
Here are the default shortcuts for the most widely used terminal apps. If a shortcut doesn’t work, check your emulator’s preferences, as many let you rebind keys.
- macOS Terminal: Shift+Command+N – opens a new window with the default profile. The menu path is Shell > New Window.
- GNOME Terminal (Linux): Shift+Ctrl+N – opens a new window. Menu: File > New Window.
- Konsole (KDE): Shift+Ctrl+N – same as GNOME. Menu: File > New Window.
- Windows Terminal: Shift+Ctrl+N – opens a new window. Menu: the dropdown arrow next to the plus icon, then “New Window”.
- iTerm2 (macOS): Shift+Command+N – opens a new window. Menu: Shell > New Window.
- Alacritty: Ctrl+Shift+N (Windows/Linux) or Cmd+Shift+N (macOS) – but note that Alacritty does not support tabs natively, so this opens a new window directly.
If you are using a terminal multiplexer like tmux or screen inside your terminal, the shortcut may be intercepted. In that case, you can usually detach the session (tmux detach) and reattach it in a new window, or use the multiplexer’s own window commands.
Using Menus and Context Options
If you prefer menus over shortcuts, the option is almost always under the File or Shell menu. In macOS Terminal, go to Shell > New Window and choose a profile from the submenu if you have multiple profiles. In GNOME Terminal, click File > New Window. Windows Terminal has a dropdown arrow beside the new-tab plus button; clicking it reveals “New Window” and also lets you open a new window with a specific profile (PowerShell, Command Prompt, or WSL).
Some emulators also support a right-click context menu on a tab. For example, in iTerm2, right-clicking a tab gives you “Open in New Window” which moves that tab’s session into a new window rather than creating a fresh session. That is a different action – it detaches the tab. In GNOME Terminal, right-clicking a tab does not offer this, but you can drag the tab out of the window and it will become a new window. Dragging works in most tabbed terminals: click and hold the tab, drag it outside the window, and release. This is a quick way to split a session without a shortcut.
How to Change or Create Custom Shortcuts
If the default shortcut conflicts with another app or you simply prefer a different key combination, you can rebind it.
- macOS Terminal: Open Preferences > Profiles > Keys (or Settings > Profiles > Keys in newer versions). Look for “New Window” in the list, double-click it, and press your desired combination.
- GNOME Terminal: There is no built-in GUI to rebind shortcuts. You can edit the
dconfkeyorg.gnome.Terminal.Legacy.Keybindingsusingdconf-editororgsettings. The key isnew-window– set it to a string like'<Primary><Shift>n'. - Windows Terminal: Go to Settings (Ctrl+,), then Actions. Search for “newWindow” and edit its key binding. You can add a custom action in the JSON settings file if the UI doesn’t cover it.
- iTerm2: Preferences > Keys > Key Bindings. Click “+” and assign an action like “New Window” to a key combination.
When setting a new shortcut, avoid combinations that your shell uses (like Ctrl+C for interrupt). Most terminals will warn you if a binding already exists.
Common Problems and Fixes
If the shortcut does nothing, check these in order:
- Focus is on the wrong pane – if you are using a split pane inside a terminal (iTerm2, Windows Terminal, or tmux), the shortcut may apply to the pane, not the window. Click on the terminal area first.
- Another app is intercepting the shortcut – global hotkeys (e.g., clipboard managers, screen recorders) can steal combinations. Try the menu path instead to confirm the terminal still works.
- Profile-specific settings – in macOS Terminal, each profile has its own key settings. If you changed the shortcut for one profile but are using another, it won’t apply.
- Terminal multiplexer conflict – if you are inside tmux, Ctrl+B is the prefix, and Ctrl+Shift+N might be captured. Press Ctrl+B then N to switch to the next window instead.
- Wayland vs X11 on Linux – some older GNOME Terminal versions had bugs on Wayland where shortcuts involving Shift+Ctrl didn’t register. Updating the terminal or switching to Xorg usually fixes it.
If the new window opens but immediately closes, check that your default shell is set correctly (chsh on Linux/macOS, or the profile settings in Windows Terminal). A misconfigured shell can cause the window to exit instantly.
New Window vs. New Tab vs. Split Pane
It helps to know what you are actually getting. A new tab keeps everything in the same window, sharing the window’s title bar and menu bar. A new window creates a separate OS-level window, which can be minimized, restored, or moved independently. A split pane (available in iTerm2, Windows Terminal, and tmux) divides the existing window into two or more viewports, each running its own shell – this is often better for side-by-side comparison because you don’t have to manage multiple windows.
The choice depends on your screen space and workflow. If you have a single large monitor, split panes might be more efficient. If you have multiple monitors, new windows let you put each session on a different screen. Tabs are a middle ground – good for organizing many sessions without cluttering the taskbar.
Automating Window Creation
You can also create a new window programmatically from within a shell script or by using a command. In macOS Terminal, the command is:
open -a Terminal .
That opens a new Terminal window in the current directory. To open a window with a specific command, use:
osascript -e 'tell app "Terminal" to do script "echo hello"'
On Linux with GNOME Terminal:
gnome-terminal --window
Windows Terminal from PowerShell or CMD:
wt -w new
These commands are handy for scripts that need to spawn a fresh window without manual key presses. Note that wt -w new will open a new window even if you are already in a terminal.
Frequently Asked Questions
Does a new window from a tab copy the current directory?
In most emulators, yes – the new window starts in the same working directory as the tab you were in, because the terminal inherits the current directory from the parent process. However, this is not guaranteed if you have a custom profile that sets a specific startup directory. If you need to be sure, run pwd in the new window.
Can I move an existing tab into a new window without creating a new session?
Yes. In most tabbed terminals (iTerm2, GNOME Terminal, Windows Terminal), you can drag the tab out of the window and release – it becomes a new window. In iTerm2, right-click the tab and choose “Open in New Window”. This is different from the shortcut, which creates a fresh session.
Why does my shortcut open a new tab instead of a new window?
You are likely pressing the wrong combination. For example, Cmd+T (macOS) or Ctrl+Shift+T (Linux) opens a tab. The new-window shortcut usually includes Shift and the N key. Check your emulator’s menu to see the exact binding.
Is there a way to make a new window open with a specific profile or shell?
Yes. In macOS Terminal, use Shell > New Window and pick the profile. In Windows Terminal, click the dropdown arrow and select the profile. In GNOME Terminal, you can set the default profile in preferences, but you cannot easily specify a different profile per new window without using gnome-terminal --window --profile=<name>.
Does creating a new window affect running processes in the original tab?
No. Each window and tab runs its own shell process. Closing the original tab will not kill processes in the new window, and vice versa. If you want to keep a process running after closing the terminal, use nohup or a terminal multiplexer like tmux.
Can I set a custom shortcut for new window in Windows Terminal?
Yes. Open Settings (Ctrl+,), go to Actions, find the “New window” action, and click the pencil icon to change the key binding. You can also edit the settings.json file directly by adding an action entry with the command set to "newWindow" and a keys array.