glunty

tmux Terminal Cheat Sheet

A searchable reference of tmux keyboard shortcuts and what each one does.

tmux keyboard shortcuts and commands with a plain-English description of what each one does
Keys What it does
tmux Start the tmux server and open a new session with a default numeric name.
tmux new -s name Start a new session with a name you choose.
tmux ls List the sessions that are currently running.
tmux attach -t name Reattach your terminal to an existing named session.
tmux a -t name Short alias for attach to a named session.
tmux kill-session -t name Stop a named session and every window inside it.
tmux kill-server Stop the tmux server and every session it is running.
Ctrl-b d Detach from the current session, leaving it running in the background.
Ctrl-b $ Rename the current session.
Ctrl-b s Show an interactive list of sessions to switch between.
Ctrl-b ( Switch the attached client to the previous session.
Ctrl-b ) Switch the attached client to the next session.
Ctrl-b D Choose which attached client to detach.
Ctrl-b c Create a new window and switch to it.
Ctrl-b , Rename the current window.
Ctrl-b n Move to the next window.
Ctrl-b p Move to the previous window.
Ctrl-b 0-9 Select a window directly by its number.
Ctrl-b l Switch back to the window you were last on.
Ctrl-b w List windows across sessions and pick one interactively.
Ctrl-b f Search for a window by name or visible text.
Ctrl-b & Close the current window after a confirmation prompt.
Ctrl-b ' Prompt for a window index and jump straight to it.
Ctrl-b . Move the current window to a different number.
Ctrl-b % Split the current pane into left and right panes.
Ctrl-b " Split the current pane into top and bottom panes.
Ctrl-b arrow Move to the pane in the direction of the arrow key.
Ctrl-b o Cycle to the next pane in the current window.
Ctrl-b ; Jump to the pane you were last active in.
Ctrl-b x Close the current pane after a confirmation prompt.
Ctrl-b z Toggle zoom so the current pane fills the whole window.
Ctrl-b Space Cycle through the preset pane layouts.
Ctrl-b q Briefly show pane numbers; press a number to jump to that pane.
Ctrl-b ! Break the current pane out into its own new window.
Ctrl-b { Swap the current pane with the previous one.
Ctrl-b } Swap the current pane with the next one.
Ctrl-b Ctrl-o Rotate the panes in the current window.
Ctrl-b [ Enter copy mode to scroll back and select text.
Ctrl-b PgUp Enter copy mode and scroll up one page into the history.
Space Start a selection at the cursor while in copy mode.
Enter Copy the current selection and leave copy mode.
Ctrl-b ] Paste the most recently copied text into the pane.
q Quit copy mode without copying anything.
Ctrl-b ? List every key binding tmux currently knows.
Ctrl-b : Open the tmux command prompt to type a command.
Ctrl-b t Show a large clock in the current pane.
Ctrl-b r Reload your config file, if you have bound r to source-file in it.
Ctrl-b Ctrl-arrow Resize the current pane one cell toward the arrow; the binding repeats so you can hold it.
Ctrl-b Ctrl-b Send a literal Ctrl-b to the program running inside the pane.
Ctrl-b ~ Show the most recent tmux status messages.

Runs entirely in your browser. Nothing you type is sent anywhere; open DevTools and watch the Network tab to verify zero requests.

What this tool does

This is a searchable quick reference for tmux, the terminal multiplexer that splits one terminal into sessions, windows, and side-by-side panes and keeps them running even after you disconnect. Nearly every tmux command starts with a prefix key: you press Ctrl-b, release it, then press the command key, so a shortcut written as Ctrl-b c means press Ctrl-b and then c. Rows that start with tmux are plain shell commands you run from your prompt. Each row pairs the exact keys with a plain-English note on what they do, and the whole list is built into the page so it works offline.

How to use it

Start typing in the Filter box. Entering split surfaces the pane-splitting shortcuts; entering detach jumps to Ctrl-b d; entering attach shows how to reconnect to a session. The category buttons (Sessions, Windows, Panes, Copy mode, Misc) narrow the table to one area and combine with the text filter, so you can pick Panes and type resize to zero in on sizing shortcuts. Clear the box to see the full sheet again. Remember that the default prefix is Ctrl-b unless you have rebound it in your config.

Common use cases

  • Keeping a long build or download alive on a remote server by detaching with Ctrl-b d and reattaching later.
  • Splitting one terminal into several panes to watch logs, run tests, and edit code at once.
  • Recalling the exact key for a shortcut you use rarely, like breaking a pane out with Ctrl-b !.
  • Scrolling back through output and copying text with copy mode instead of your mouse.
  • Learning the core tmux workflow before setting up a shared pair-programming session.

Common pitfalls

  • Forgetting the prefix. A shortcut like c does nothing on its own; you have to press the prefix Ctrl-b first, release it, then press the key. If nothing happens, you probably typed the command key without the prefix.
  • Confusing detach with kill. Ctrl-b d detaches and leaves the session running, while tmux kill-session stops it for good. Detach when you want to come back; kill only when you are truly done.
  • Rebinding the prefix and forgetting. Many configs remap the prefix to Ctrl-a. If the Ctrl-b shortcuts here do nothing, check your .tmux.conf for a different prefix binding.
  • Getting stuck in copy mode. While in copy mode the normal keys behave differently. Press q to leave copy mode and return to your shell before typing commands again.

Frequently asked questions

What is tmux?
tmux is a terminal multiplexer. It lets one terminal window hold many sessions, windows, and side-by-side panes, and it keeps those sessions alive on the server even after you disconnect. That makes it ideal for running long tasks on a remote machine over SSH, splitting your screen into several shells, and picking up exactly where you left off when you reconnect.
What is the tmux prefix key?
Almost every tmux shortcut starts with a prefix key that tells tmux the next keystroke is a command for it rather than for the program in the pane. The default prefix is Ctrl-b. You press and release Ctrl-b, then press the command key, so opening a new window is Ctrl-b then c. Many people rebind the prefix to Ctrl-a in their config, but this sheet uses the default Ctrl-b throughout.
How do I detach and reattach a session?
To detach and leave everything running in the background, press Ctrl-b then d. Your programs keep going on the server. When you come back, run tmux ls to see the sessions that are still alive, then tmux attach -t name to reconnect to the one you want. If there is only one session, plain tmux attach reattaches it.
How do I split panes in tmux?
Press Ctrl-b then % to split the current pane into a left and right pair, or Ctrl-b then a double quote to split it into a top and bottom pair. Move between panes with Ctrl-b followed by an arrow key, and press Ctrl-b then z to zoom the focused pane to full size and back. Close a pane with Ctrl-b then x.
How do I scroll up and copy text in tmux?
Enter copy mode with Ctrl-b then the left square bracket, which frees the arrow keys and Page Up to scroll back through the pane history. Press Space to begin a selection, move to the end, and press Enter to copy it and exit. Paste the copied text back with Ctrl-b then the right square bracket, and press q to leave copy mode without copying.
Does this cheat sheet send my searches anywhere?
No. The entire keybinding list is baked into the page and every filter runs in your browser with JavaScript, so nothing you type is sent to any server. Open your browser DevTools and watch the Network tab while you search to confirm there are zero requests.

Embed this tool

Free for any use; attribution appreciated. Paste this on your site:

The embed runs the same tool that lives at this URL. No tracking; no ads inside the embed. Resize height as needed for your layout.

Cite this tool

For academic, journalistic, or technical references. Pick a format:

Citations use 2026 as the publication year. Access date is left as a fillable placeholder where the citation style expects one.

Embedded tool from glunty.com