Skip to content

Tmux Shortcuts

DescriptionShortcut
Default prefix keyCtrl + b
Switch to window (number in footer)prefix + number
New sessionprefix + c
Cycle windows next/previousprefix + n/p
Close windowskill all panes or prefix + &
Rename windowprefix + ,
Command modeprefix + :
Command mode, historyprefix + : + arrow keys

Like visual mode, cursor and pagination can move

vi bindings per tmux man page

DescriptionShortcut
Page Up/Downprefix + Page Up, Page Down
Copy modeprefix + [
SelectSpace
Select, visual select rectangle toggleSpace or v
Select, visual line mondeShift + v
CopyEnter / Ctrl + w
tmux-yank plugin: copy to system clipboardprefix + y or y
Search up, down?, / + <word> + enter
Search next, previous resultn, p

Select mode with mouse using Shift + mouse motions, then Ctrl+Shift+c to copy, Ctrl+Shift+v to paste

DescriptionShortcut
Split panesprefix + % (horizontal) / ” (vertical)
Go to pane by directionprefix + arrow keys
Go to pane by numberprefix + q + number
Close paneclose shell or prefix + x
Synchronize panes (execute same commands)prefix + :setw synchronize-panes
  • synchronize panes can be useful when running same commands in different environments, machines, projects
DescriptionShortcut
Detach sessionprefix + d
List sessionsprefix + s
See, switch to sessionsprefix + w, enter
Rename sessionprefix + $
DescriptionShortcut
Pasteprefix + ]
Paste from tmux buffer (clipboard)prefix + =
DescriptionShortcut
Install/reload pluginsprefix + I
Help, list key bindingsprefix + ?
DescriptionShortcut
tmux-resurrect, saveprefix + Ctrl + s
tmux-resurrect, restoreprefix + Ctrl + r