Skip to content

Keyboard Shortcuts

Fresh

Complete keyboard shortcut reference for tmux.

Prefix Key

The default prefix is Ctrl+b. Press the prefix, release, then press the action key. Example: Ctrl+b c means press Ctrl+b, release, press c.

Sessions

ShortcutAction
Ctrl+b dDetach from session
Ctrl+b $Rename session
Ctrl+b sList/switch sessions
Ctrl+b (Previous session
Ctrl+b )Next session
Ctrl+b LSwitch to last session

Windows

ShortcutAction
Ctrl+b cCreate new window
Ctrl+b ,Rename current window
Ctrl+b &Close current window
Ctrl+b wList windows (all sessions)
Ctrl+b nNext window
Ctrl+b pPrevious window
Ctrl+b 0-9Go to window number
Ctrl+b lToggle last active window
Ctrl+b 'Select window by number
Ctrl+b .Move window to another index
Ctrl+b fFind window by name

Panes

Creating Panes

ShortcutAction
Ctrl+b %Split vertically (left/right)
Ctrl+b "Split horizontally (top/bottom)
ShortcutAction
Ctrl+b arrowMove to pane in direction
Ctrl+b oNext pane (cycle)
Ctrl+b ;Toggle last active pane
Ctrl+b qShow pane numbers
Ctrl+b q 0-9Go to pane number

Managing Panes

ShortcutAction
Ctrl+b zToggle pane zoom (fullscreen)
Ctrl+b xClose pane (with confirm)
Ctrl+b !Convert pane to window
Ctrl+b {Move pane left
Ctrl+b }Move pane right
Ctrl+b SpaceCycle through layouts
Ctrl+b Ctrl+oRotate panes
Ctrl+b Alt+1-5Select layout preset

Resizing Panes

ShortcutAction
Ctrl+b Ctrl+arrowResize (1 cell)
Ctrl+b Alt+arrowResize (5 cells)

Hold for Continuous Resize

Hold Ctrl while pressing arrow keys repeatedly for smooth resizing.

Copy Mode

Entering/Exiting

ShortcutAction
Ctrl+b [Enter copy mode
Ctrl+b PgUpEnter copy mode + page up
qExit copy mode
EscExit copy mode
KeyAction
h j k lMove cursor
w / bWord forward/backward
0 / $Line start/end
g / GBuffer top/bottom
Ctrl+u / Ctrl+dPage up/down
Ctrl+b / Ctrl+fPage up/down (alt)

Searching

KeyAction
/Search forward
?Search backward
nNext match
NPrevious match

Selecting and Copying

KeyAction
SpaceStart selection
vStart selection (vi)
VSelect line
Ctrl+vRectangle select
EnterCopy selection
yCopy selection (vi)
EscClear selection

Pasting

ShortcutAction
Ctrl+b ]Paste buffer
Ctrl+b =Choose buffer to paste

Command Mode

ShortcutAction
Ctrl+b :Enter command mode
Ctrl+b ?List all key bindings

Help

ShortcutAction
Ctrl+b ?Show key bindings
Ctrl+b :list-keysList all keys
Ctrl+b :list-commandsList all commands

Layout Presets

ShortcutLayout
Ctrl+b Alt+1Even horizontal
Ctrl+b Alt+2Even vertical
Ctrl+b Alt+3Main horizontal
Ctrl+b Alt+4Main vertical
Ctrl+b Alt+5Tiled

Printable Quick Reference Card

╔═══════════════════════════════════════════════════════╗
║              TMUX QUICK REFERENCE                      ║
║              Prefix: Ctrl+b                            ║
╠═══════════════════════════════════════════════════════╣
║ SESSIONS          │ WINDOWS           │ PANES          ║
║ d  Detach         │ c  New            │ %  Split vert  ║
║ s  List           │ n  Next           │ "  Split horiz ║
║ $  Rename         │ p  Previous       │ →  Navigate    ║
║ (  Previous       │ 0-9 Jump to       │ z  Zoom        ║
║ )  Next           │ w  List all       │ x  Close       ║
║                   │ ,  Rename         │ Space Layout   ║
╠═══════════════════════════════════════════════════════╣
║ COPY MODE (Ctrl+b [)                                   ║
║ /  Search    Space  Select    Enter  Copy              ║
║ ?  Search←   hjkl   Navigate  q      Exit              ║
║                                                        ║
║ PASTE: Ctrl+b ]                                        ║
╠═══════════════════════════════════════════════════════╣
║ : Command mode    ? Help/keys    Ctrl+arrow Resize     ║
╚═══════════════════════════════════════════════════════╝

Custom Key Bindings

Common customizations for ~/.tmux.conf:

bash
# Change prefix to Ctrl+a
unbind C-b
set -g prefix C-a
bind C-a send-prefix

# Better splits
bind | split-window -h
bind - split-window -v

# Vim-style pane navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Reload config
bind r source-file ~/.tmux.conf \; display "Reloaded!"

See Also

Generated with AI-powered SOP Generator