Skip to main content

Core Shortcuts Cheatsheet

All shortcuts use the default prefix Ctrl+b. Press and release the prefix, then press the command key. On this server the prefix is Ctrl+Space with additional prefix-free alternatives.

Session Shortcuts

Default ShortcutModification ShortcutAction
Ctrl+b dCtrl+Space dDetach from session (session stays alive)
Ctrl+b sCtrl+Space sList and switch sessions
Ctrl+b $Prefix e sRename current session
Ctrl+b (Alt+HomePrevious session
Ctrl+b )Alt+EndNext session

Window Shortcuts

Default ShortcutModification ShortcutAction
Ctrl+b cCtrl+Space WCreate new window
Ctrl+b ,Prefix e wRename current window
Ctrl+b nAlt+PageDownNext window
Ctrl+b pAlt+PageUpPrevious window
Ctrl+b 0-9Alt+1/2/3 or Ctrl+Space 0-9Switch to window by number
Ctrl+b wCtrl+Space wSearchable session/window/pane tree
Ctrl+b lCtrl+Space lLast used window
Ctrl+b &Ctrl+Space XKill current window (prompts)

Pane Shortcuts

Default ShortcutModification ShortcutAction
Ctrl+b %`Ctrl+Space`
Ctrl+b "Ctrl+Space -Split pane horizontally (top/bottom)
Ctrl+b arrowAlt+arrows or Alt+h/j/k/lMove focus between panes
Ctrl+b oCtrl+Space oCycle through panes
Ctrl+b qCtrl+Space qShow pane numbers
Ctrl+b zCtrl+Space zZoom / unzoom pane (with prefix)
Alt+zAlt+zZoom / unzoom pane (no prefix)
Ctrl+b !Ctrl+Space !Break pane into new window
Ctrl+b xCtrl+Space xKill current pane (prompts)
Ctrl+b {Prefix S Left/hMove pane left
Ctrl+b }Prefix S Right/lMove pane right
Ctrl+b SpaceCtrl+Space SpaceCycle through layout presets
Ctrl+b Alt+arrowCtrl+Space Alt+arrowResize pane (5 cells)

Copy Mode Shortcuts

Default ShortcutModification ShortcutAction
Ctrl+b [Ctrl+Space [Enter copy/scroll mode
Ctrl+b ]Ctrl+Space ]Paste from tmux buffer
Ctrl+b PgUpCtrl+Space PgUpEnter copy mode, scroll up
Ctrl+b =Ctrl+Space =Choose from paste buffers (interactive)

Inside copy mode (vi mode):

h/j/k/l Move cursor
v Begin selection
y Copy selection and exit
/ Search forward
? Search backward
n / N Next / previous match
q Exit copy mode
g / G Top / bottom of scrollback
Ctrl+u / Ctrl+d Scroll half page up / down

Fast Navigation Habit

Use Ctrl+b w as the main tmux navigator. It opens the interactive tree for sessions, windows, and panes, and / can search/filter the list quickly.

Keep Ctrl+b s for a simple session overview; most daily switching is faster through Ctrl+b w.

Default ShortcutModification ShortcutAction
Ctrl+b wCtrl+Space wOpen searchable tree
/ Search/filter inside the tree
Enter Switch to highlighted item
q / Esc Close chooser

Miscellaneous

Default ShortcutModification ShortcutAction
Ctrl+b :Ctrl+Space :Open command prompt
Ctrl+b ?Ctrl+Space ?Show all key bindings
Ctrl+b tCtrl+Space tShow clock
Ctrl+b rCtrl+Space rReload config (if bound)
Ctrl+b mCtrl+Space aToggle mouse (if bound)

Common Gotchas

GotchaCauseFix
Shortcuts do nothingHolding all keys at oncePress and RELEASE prefix first
Session killed on logoutUser lingering disabledsudo loginctl enable-linger $USER
Config changes not appliedNot reloadedtmux source-file ~/.tmux.conf
Wrong session attachedTypo in session nameCheck tmux ls first

Next