Tmux Keyboard Shortcuts: The Complete List

Tmux (terminal multiplexer) lets you run, split, and manage multiple terminal sessions inside a single window and keep them running even after you disconnect. If you SSH into servers, juggle multiple long-running processes, or just want to stop tabbing between fifteen terminal windows, tmux shortcuts are the fastest way to work.

Every tmux shortcut starts the same way: press the prefix key (Ctrl+b by default), release it, then press the follow-up key. For example, Ctrl+b d means “hold Ctrl and press b, let go of both, then press d” that detaches your session.

This page covers every shortcut you’ll actually use: sessions, windows, panes, copy mode, and how to customize the prefix key itself plus a free downloadable PDF cheat sheet.

Quick answer: the three shortcuts to memorize first are Ctrl+b d (detach), Ctrl+b c (new window), and Ctrl+b % (split pane vertically). Everything else builds on those.

Tmux Session Shortcuts

A session is the top-level container in tmux it holds all your windows and panes. Sessions are what make tmux powerful over SSH: you can detach, close your laptop, and reattach later exactly where you left off.

ActionShortcut / Command
Start a new sessiontmux or tmux new
Start a new named sessiontmux new -s myname
Start or attach if it existstmux new-session -A -s myname
Rename current sessionCtrl+b $
Detach from sessionCtrl+b d
List all sessionsCtrl+b s (interactive) or tmux ls
Attach to last sessiontmux a
Attach to a named sessiontmux a -t myname
Move to previous sessionCtrl+b (
Move to next sessionCtrl+b )
Kill (delete) a named sessiontmux kill-session -t myname
Kill all sessions except currenttmux kill-session -a

Tmux Window Shortcuts

A window works like a browser tab each one is a full-screen terminal inside your session. You can have as many as you need and switch between them instantly.

ActionShortcut
Create new windowCtrl+b c
Rename current windowCtrl+b ,
Close current windowCtrl+b &
List all windowsCtrl+b w
Next windowCtrl+b n
Previous windowCtrl+b p
Switch to window by numberCtrl+b 0–9
Toggle last active windowCtrl+b l
Find window by nameCtrl+b f

Tmux Pane Shortcuts

A pane is a split section inside a window this is how you get multiple terminals visible on screen at once, side by side or stacked.

ActionShortcut
Split pane vertically (side-by-side)Ctrl+b %
Split pane horizontally (stacked)Ctrl+b “
Switch to next paneCtrl+b o
Toggle last active paneCtrl+b ;
Move between panes by directionCtrl+b + Arrow key
Show pane numbersCtrl+b q
Switch to pane by numberCtrl+b q then 0–9
Toggle pane zoom (fullscreen a pane)Ctrl+b z
Close current paneCtrl+b x
Move current pane leftCtrl+b {
Move current pane rightCtrl+b }
Toggle between pane layoutsCtrl+b Space
Resize pane (hold arrow keys)Ctrl+b + hold Arrow key
Convert pane into its own windowCtrl+b !

Tip: Ctrl+b z (zoom) is one of the most underused shortcuts. Instead of closing and reopening panes to focus on one task, zoom in, work, then zoom out your layout stays exactly as you left it.

Tmux Copy Mode Shortcuts

Copy mode lets you scroll back through terminal output and copy text without touching your mouse. It uses vi-style navigation by default in most modern tmux configs.

ActionShortcut
Enter copy modeCtrl+b [
Exit copy modeq
Move cursor left / down / up / righth / j / k / l
Move forward one wordw
Move backward one wordb
Go to top of scrollbackg
Go to bottom of scrollbackG
Search forward/
Search backward?
Next search matchn
Previous search matchN
Start text selectionSpace
Clear selectionEsc
Copy selection to bufferEnter
Paste from bufferCtrl+b ]

If your h j k l navigation isn’t working in copy mode, your tmux isn’t set to vi keys yet see the customization section below for the one-line fix.

Tmux Shortcuts on Mac vs Linux vs WSL

The good news: tmux shortcuts are identical across macOS, Linux, and WSL Ctrl+b is the prefix everywhere, because tmux runs inside the terminal application itself, not the OS.

Where people actually run into trouble:

  • macOS + iTerm2/Terminal.app: Ctrl works the same as Linux. The confusion usually comes from Option-as-Meta settings for other apps tmux itself doesn’t need that.
  • macOS trackpad users: if you’re used to Cmd for everything, remember tmux always uses Ctrl, not Cmd, for the prefix.
  • WSL (Windows Subsystem for Linux): shortcuts work exactly as on native Linux once you’re inside a WSL terminal but Windows Terminal may intercept certain key combos (like Ctrl+Shift+letter) before they reach tmux. Stick to the default Ctrl+b prefix to avoid conflicts.
  • Any platform, if Ctrl+b feels awkward: remap the prefix to Ctrl+a (see below) this is the single most common tmux customization, regardless of OS.

How to Customize Your Tmux Prefix Key

Ctrl+b is a stretch for a lot of hands, so many users remap the prefix to Ctrl+a (matching GNU Screen) instead.

1. Open (or create) your config file: nano ~/.tmux.conf

2. Add these two lines:

unbind C-b
set -g prefix C-a

3. Add this line so Ctrl+a also works to switch to the last window (optional but common):

bind C-a send-prefix

4. Reload the config without restarting tmux:

tmux source-file ~/.tmux.conf

To enable vi-style keys in copy mode (recommended), add this line to the same file:

setw -g mode-keys vi

Download the PDF

Want this list on paper? Download the Tmux Shortcuts PDF for a quick-reference sheet you can keep next to your keyboard.

FAQs

What is the default tmux prefix key?

Ctrl+b. Press it, release both keys, then press the shortcut key that follows.

How do I switch to the next window in tmux?

Press Ctrl+b n for the next window, or Ctrl+b p for the previous one. You can also jump directly to a window by number with Ctrl+b followed by the number key (0–9).

How do I close a window in tmux?

Press Ctrl+b &, then confirm with y when prompted.

How do I switch windows in tmux by name instead of number?

Press Ctrl+b f, type part of the window name, and press Enter.

What are tmux hotkeys on Mac?

Identical to Linux Ctrl+b is the prefix on macOS too. There’s no separate “Mac version” of tmux shortcuts; the only differences come from your terminal app’s own key interception, not tmux itself.

How do I see a full list of tmux key bindings?

Press Ctrl+b ? inside any tmux session, or run tmux list-keys from the command line. Press q to exit the list.

What’s the difference between tmux shortcuts and tmux commands?

Shortcuts are keypresses starting with the prefix (Ctrl+b + key). Commands are typed out after entering command mode with Ctrl+b :, e.g. :kill-session. Anything you can do with a shortcut can usually also be done as a typed command, and vice versa.

How do I detach from tmux without closing my session?

Ctrl+b d. Your session, windows, and panes keep running in the background reattach anytime with tmux a.

Can I customize tmux keybindings?

Yes edit ~/.tmux.conf and reload it with tmux source-file ~/.tmux.conf. The most common customization is remapping the prefix key (see the customization section above).

How many keyboard shortcuts does tmux have by default?

Tmux ships with dozens of default bindings run Ctrl+b ? or tmux list-keys in your terminal to see the exact list for your installed version, since it can vary slightly by release.

Conclusion

Tmux rewards muscle memory more than any other terminal tool once Ctrl+b d, Ctrl+b c, and Ctrl+b % become second nature, you’ll stop reaching for the mouse or juggling a dozen terminal windows entirely. Start with the shortcut table above, keep this page bookmarked (or print the PDF) for the shortcuts you use less often, and don’t be afraid to remap the prefix key if Ctrl+b doesn’t fit your hands most experienced users end up customizing at least that much.

READ NEXT:

Pratik

Pratik is the founder of Tutorial Tactic and a productivity tools specialist with 15 years of hands-on experience in Google Workspace, Microsoft Office, and software automation. He has published over 1,500 guides on keyboard shortcuts, software commands, how-to tutorials and workflow optimization, helping readers across the US and India work faster with the tools they use every day. Tutorial Tactic was founded in 2021 with one goal: cut through the noise and give readers exactly what they need fast, verified, and beginner-friendly.
Back to top button