Tutorial tmux Terminal Multiplexer CLI Keybindings Session Management Pane Management Copy Mode tmuxinator Developer Tools Cheat Sheet

Free tmux Commands Cheat Sheet Online — 120+ Terminal Multiplexer Commands & Keybindings Reference

· 20 min read

tmux is the terminal multiplexer that turns a single terminal window into a persistent, multi-pane, multi-session workspace. Detach from a running session, log out, come back hours later, and reattach — everything is still running exactly where you left it. Our free interactive tmux Commands Cheat Sheet gives you instant access to 120 commands and keybindings across 10 categories, with real-time search, one-click copy, and a Terminal Multiplexer aesthetic inspired by pane splits and cursor blink animations. No signup. No server. 100% client-side.

Why tmux Is the Developer's Session Manager

Every developer who works in the terminal eventually hits the same wall: you SSH into a server, start a long-running process, and your connection drops. Without tmux, the process dies. With tmux, you reattach and it's still running. This persistence is tmux's killer feature — but it's just the beginning. tmux gives you split panes (horizontal and vertical splits, resizeable with keyboard shortcuts), multiple windows (like tabs in a browser, each with its own pane layout), and multiple sessions (entire workspaces you can switch between). You can share a session with a pair-programming partner, script entire tmux environments with tmuxinator, and customize every keybinding.

The tmux ecosystem has evolved far beyond a simple screen alternative. Copy mode with vi keys gives you vim-like text selection, search, and yanking within your terminal history. The plugin ecosystem — driven by Tmux Plugin Manager (TPM) — brings session persistence across reboots (tmux-resurrect), continuous auto-saving (tmux-continuum), fuzzy text selection (tmux-fingers, tmux-thumbs), system clipboard integration (tmux-yank), and beautiful status bar themes (Catppuccin, Tokyo Night). Our cheat sheet organizes this entire platform into 10 focused categories with every command, keybinding, and pattern you need.

Session Management — The Foundation of Persistent Work

Sessions are tmux's top-level container. Each session holds multiple windows, and each window holds multiple panes. Our Session Management category covers the complete session lifecycle: tmux new-session -s dev (create a named session, or add -d to create in the background without attaching), tmux attach -t dev (attach to an existing session, with -d to detach other clients), C-b d (detach from the current session — the session keeps running with all processes intact), tmux list-sessions (list all active sessions with window counts, shorthand tmux ls), C-b s (interactive session chooser with preview), tmux kill-session -t dev (terminate a session and all its windows/panes/processes), C-b $ (interactive rename prompt for the current session), tmux switch-client -t prod (switch the current terminal to a different session), C-b L (toggle to the last session — like Alt+Tab for tmux), C-b ) / C-b ( (cycle to next/previous session), and tmux new-session -A -s dev (the attach-or-create pattern — attaches if the session exists, creates it if not, ideal for startup scripts).

Window Management — Organizing Work Across Tabs

Windows are like tabs inside a session — each window is a full-screen terminal with its own pane layout. Our Window Management category covers: C-b c (create a new window with the default shell), C-b , (rename the current window — descriptive names like "editor", "server", "logs" make navigation intuitive), C-b & (kill the current window with y/n confirmation), tmux new-window -n logs 'tail -f /var/log/syslog' (create a named window that runs a specific command on launch), C-b 0-9 (instant jump to window by index number — C-b 0 for window 0, C-b 5 for window 5), C-b n / C-b p (cycle next/previous window), C-b l (toggle to the last active window — the single most-used window shortcut), C-b w (interactive window list with live preview across all sessions), C-b f (find window by name — type part of the name and select from matches), tmux move-window -t 3 (reorder windows by moving to a different index), tmux swap-window -s 0 -t 3 (swap two windows by index), and C-b . (renumber the current window to fill gaps after deleting windows).

Pane Management — Splitting the Terminal Canvas

Panes are where the real productivity happens — splitting one window into multiple terminal regions, each running independently. Our Pane Management category covers: C-b " (split horizontally — creates a new pane below the current one), C-b % (split vertically — creates a new pane to the right), C-b x (kill the current pane with y/n confirmation), C-b z (zoom the current pane to fill the entire window — press again to unzoom and restore the layout, great for focused work), C-b q (display pane numbers briefly — press a number while visible to jump to that pane), C-b { / C-b } (swap the current pane with the previous/next pane, rotating content within the layout), C-b Space (cycle through five built-in layouts: even-horizontal, even-vertical, main-horizontal, main-vertical, tiled), C-b ! (break the current pane out into its own new window — useful when a pane deserves more space), tmux join-pane -s 0:1 -t 0:0 (move a pane from one window to another, joining it into the target window's layout), C-b Ctrl+arrow (resize the current pane by 1 cell in the arrow direction), C-b M-arrow (resize by 5 cells — much faster for big adjustments), and tmux display-panes (show pane numbers from the command line, similar to C-b q).

Navigation — Moving Through the tmux Workspace

Efficient navigation is what separates tmux beginners from power users. Our Navigation category covers: C-b arrow keys (move focus to the adjacent pane in the direction pressed — follows the visual layout), C-b o (cycle to the next pane in order, wrapping around), C-b ; (toggle to the last active pane — one of the most important shortcuts to build into muscle memory), C-b C-o (rotate all panes forward one position — effectively rotating the layout), C-b M-o (rotate panes backward), C-b t (display a large digital clock in the current pane — press any key to dismiss), C-b w (open choose-tree with session and window previews — arrow keys to navigate, Enter to select), C-b s (interactive session chooser), tmux choose-tree (open the tree browser from the command line — use -s for session-only or -w for window-only view), C-b [ (enter scroll/copy mode to navigate the pane's scrollback buffer — use arrows, PgUp/PgDn, or vim keys, press q to exit), and tmux select-pane -t 0:1.2 (select a specific pane by target: session:window.pane format, use . for current).

Copy Mode — Vim-Style Text Selection in the Terminal

Copy mode turns tmux's scrollback buffer into a vim-like text editor. Our Copy Mode category covers: C-b [ (enter copy mode — navigate with vim keys if mode-keys is set to vi), Space (start text selection in vi mode — move the cursor to extend the selection), Enter (copy the selection and exit copy mode — the text goes to the tmux paste buffer), v / V / C-v (visual mode selection: character-wise, line-wise, and block/rectangular — exactly like Vim), y (yank the selection without exiting copy mode — stay in copy mode for multiple yanks), C-b ] (paste the most recent buffer content at the cursor position), / / ? (forward and backward search within the scrollback buffer — n for next match, N for previous), C-b PgUp / PgDn (enter copy mode and immediately scroll up/down by one page), tmux copy-mode -e (enter copy mode scrolled to the end of the buffer to see the most recent output), C-b :capture-pane -S -100 (capture the last 100 lines of scrollback into the paste buffer — great for grabbing log output), C-b :capture-pane -p (capture the visible pane content and print to stdout — useful with pipes), and set -g mode-keys vi (the essential config line that enables all these vim keybindings).

Key Bindings — Customizing Your tmux Keyboard

Every tmux keybinding can be customized, and the default prefix (C-b) can be changed. Our Key Bindings category covers: C-b ? (list all current key bindings — a scrollable reference with / search), C-b : (open the tmux command prompt — type any tmux command, Tab for completion), tmux list-keys (list bindings from the command line — use -T copy-mode to see copy-mode-specific bindings), tmux bind-key C-f new-window (create a custom binding — C-b C-f now creates a new window), tmux unbind-key C-b (remove a binding — free a key before rebinding it), C-b C-b (send a literal C-b to the application inside tmux — essential for nested tmux sessions), set -g prefix C-a (change the prefix from C-b to C-a, GNU Screen style — many users find C-a easier to reach), C-b :if-shell 'which fzf' 'split-window -h fzf' 'split-window -h' (conditional keybinding — run different commands depending on whether a tool is installed), C-b :command-prompt -p "search man:" "split-window 'man %%'" (dynamic shortcuts — prompt the user for input and substitute it into a command), bind C-r source-file ~/.tmux.conf (the essential config-reload binding — test changes without restarting tmux), and tmux send-keys -t .1 'vim' Enter (send literal keystrokes to a specific pane — useful for automation scripts).

Configuration — Building Your .tmux.conf

tmux is configured through ~/.tmux.conf, and a well-crafted config file transforms the experience. Our Configuration category covers: set -g mouse on (enable mouse support — click to select panes, drag to resize borders, scroll wheel for history — arguably the most important setting), set -g history-limit 50000 (increase scrollback buffer from the default 2000 lines), set -g base-index 1 (start window numbering at 1 instead of 0 — more intuitive for keyboard navigation), set -g status-style 'bg=#1a1b26 fg=#a9b1d6' (customize the status bar appearance with colors), set -g status-left / status-right (configure the left and right sides of the status bar with format variables like #S for session name, #W for window name, #H for hostname), set -g pane-border-style / pane-active-border-style (style pane borders differently for active vs inactive panes — makes the active pane stand out clearly), set -g display-time 4000 (set how long messages are displayed in milliseconds — increase from the 750ms default), set -g escape-time 0 (instant Escape key processing — critical for vim/neovim users, eliminates lag when pressing Esc), set -g set-clipboard on (integrate with the system clipboard — requires pbcopy on macOS or xclip/xsel on Linux), set -g default-terminal "tmux-256color" (enable true color support for applications — better than screen-256color, requires the terminfo entry), and set-hook -g session-created 'display "New session: #S"' (automate responses to tmux events like session creation, client attachment, or activity alerts).

Buffer & Clipboard — Copy, Paste, and Yank Between tmux and the OS

tmux maintains its own paste buffer stack, independent of the system clipboard. Our Buffer & Clipboard category covers: C-b = (interactive buffer chooser — shows all paste buffers with preview of contents, select with arrows and Enter), tmux list-buffers (list all paste buffers with contents and sizes — shorthand tmux lsb), tmux choose-buffer (interactive buffer browser with vim keys — j/k to navigate, / to search buffer content, Enter to paste), tmux set-buffer "SELECT * FROM users" (set the paste buffer to a specific string — overwrites the current buffer, use -b name for named buffers), tmux save-buffer /tmp/output.txt (save the buffer contents to a file — excellent for capturing log output or code snippets), tmux delete-buffer (delete the current buffer or a named buffer with -b name), tmux load-buffer ~/.tmux.conf (load a file into the paste buffer — the file content becomes the paste buffer for C-b ]), C-b :copy-pipe 'pbcopy' (copy the current selection AND pipe it to an external command — the standard pattern for system clipboard integration), tmux show-buffer (display buffer contents to stdout — useful in scripts to retrieve captured text), tmux paste-buffer -b notes (paste a specific named buffer into the active pane), and C-b :clear-history (clear the scrollback history of the current pane — frees memory and removes sensitive data).

Advanced Features — Synchronized Panes, Session Linking, and Monitoring

Power users unlock tmux's advanced features for parallel operations, session sharing, and automated monitoring. Our Advanced Features category covers: C-b :setw synchronize-panes on (toggle synchronized input — typing in one pane sends keystrokes to ALL panes, ideal for parallel SSH sessions on multiple servers), C-b :respawn-pane -k (kill and restart the current pane's process with a fresh shell — like closing and reopening a terminal tab), C-b :respawn-window -k (respawn the entire window — all pane processes killed and restarted), tmux move-pane -t dev:2 (move the current pane to a different window — the pane detaches from its current window and attaches to the target), tmux link-window -s dev:1 -t prod:2 (link a window from one session into another — the same window appears in two sessions, changes sync both ways), C-b :rotate-window (rotate all panes forward one position — -U flag rotates upward/reverse), C-b :setw monitor-activity on (status bar highlights the window when new output appears while not focused — great for watching build output), C-b :setw monitor-silence 30 (alert if a window is silent for 30 seconds — useful for detecting when a build completes or a server stops logging), C-b t (display a large digital clock — shows current time and date, press any key to dismiss), C-b :suspend-client or C-b C-z (suspend the tmux client and return to the parent shell — type fg to resume), and tmux source-file ~/.tmux.conf (reload configuration without restarting tmux — changes apply immediately).

Plugins & Tmuxinator — The tmux Ecosystem

Tmux Plugin Manager (TPM) and the plugin ecosystem extend tmux into a full development environment manager. Our Plugins & Tmuxinator category covers: TPM (clone to ~/.tmux/plugins/tpm, list plugins in .tmux.conf with set -g @plugin, press C-b I to install), tmux-resurrect (save and restore your entire tmux environment across restarts — C-b C-s to save, C-b C-r to restore, preserves sessions, windows, panes, and layout), tmux-continuum (continuous auto-saving every 15 minutes and auto-restore on tmux start — set-and-forget session persistence), tmux-fingers (jump to any text on screen with hint labels — like vim-easymotion for tmux, C-b F to enter hint mode, type the label to yank), tmux-copycat (regex-based search with predefined patterns for files, URLs, IP addresses, SHA hashes — C-b / for regex search), tmux-open (open highlighted text/URL/file in the appropriate program — o for $EDITOR, C-o for xdg-open, S-o to search in browser), tmux-yank (copy to system clipboard without leaving copy mode — y for yank to clipboard, Y for yank line with newline), tmux-sensible (better default settings — enables vi keys, increases history, sets escape-time to 0, the first plugin everyone should install), tmuxinator (define tmux sessions as YAML config files — tmuxinator new myapp scaffolds a config, tmuxinator start myapp launches all windows and panes at once), and Catppuccin/Tokyo Night themes (beautiful, complete status bar themes with extensive customization — consistent with popular editor themes, set via TPM with @catppuccin_flavour 'mocha').

The Terminal Multiplexer — Aesthetic Design

tmux splits your terminal into a grid of panes — a visual layout that's at the core of the tmux experience. Our tmux Commands Cheat Sheet embraces The Terminal Multiplexer aesthetic: a deep terminal void background (#0a0f12) with a subtle pane-split grid overlay — horizontal splits at 42% and 74%, vertical splits at 35% and 62% — creating the visual impression of a tmux session with multiple panes active. A status bar runs along the top edge with a green-to-blue-to-orange-to-cyan gradient, pulsing like a tmux status line monitoring system health.

Twenty-five floating cursor blink particles — small green rectangular blocks shaped like terminal cursors — drift upward with a blinking animation, evoking the blinking block cursor after the tmux title. Red Hat Display provides bold, distinctive display headings with a block cursor indicator (▌) that blinks after the title using a step-end animation — like the terminal cursor waiting for your next command. Fira Sans delivers clean, readable body text. JetBrains Mono serves all code snippets and commands with monospace precision. The color palette maps to tmux concepts: Session Green (#33ff44, Session Management), Window Blue (#3399ff, Window Management), Pane Orange (#ff8833, Pane Management), Jump Cyan (#33cccc, Navigation), Select Yellow (#ccaa33, Copy Mode), Bind Magenta (#cc66cc, Key Bindings), Config Silver (#aabbcc, Configuration), Buffer Red (#ff5555, Buffer & Clipboard), Advanced Amber (#ffaa22, Advanced Features), and Plugin Teal (#33aa88, Plugins & Tmuxinator). Cards feature category-colored top borders and left borders, with a glowing dot in the corner that pulses like an active pane indicator. On hover, cards lift with a cyan glass glow — like selecting a pane. This is not another generic dark theme; it's a deliberate, crafted space that makes terminal multiplexing feel like operating a command center.

How This Cheat Sheet Fits Into Your Workflow

The tmux Commands Cheat Sheet is part of the DevToolkit suite of free developer reference tools. It complements our Vim/Neovim Commands Cheat Sheet (the editor you use inside tmux panes), our Linux Commands Cheat Sheet (the commands you type in those panes), our Bash Scripting Advanced Patterns Cheat Sheet (automating tmux workflows), our Docker Compose Cheat Sheet (running containers inside tmux sessions), our DevOps Commands Cheat Sheet (the infrastructure you manage from tmux), and our Cron Job Expressions Cheat Sheet (scheduling tmux scripts). Together, tmux, vim, and the Linux terminal form the complete terminal-centric development environment — the tools that work when nothing else does, over SSH, on any server, in any language.

The workflow is simple: press Ctrl+K to focus the search bar, type what you need (a keybinding like "C-b z", a command like "new-session", a plugin name like "resurrect"), and the matching entries appear instantly. Click any card to copy its command or keybinding to your clipboard. Filter by category to narrow the view — jump directly to "Copy Mode" to review vim-style text selection, or "Configuration" to find the exact option you need for .tmux.conf. Everything runs in your browser — no server requests, no signup, no tracking. Bookmark it, keep it open while configuring tmux, and stop searching through man pages.


Related Cheat Sheets