← home

Tmux

prefix: Ctrl + B — press prefix first, then the key
Sessions
prefix$
Rename current session
prefixs
List / switch sessions (interactive)
prefixd
Detach from session
prefix(
Switch to previous session
prefix)
Switch to next session
prefixL
Switch to last session
prefix:new
New session (from command mode)
Windows (Tabs)
prefixc
Create new window
prefix,
Rename current window
prefix&
Kill current window
prefixw
List / switch windows (interactive)
prefixn
Next window
prefixp
Previous window
prefixl
Last (most recent) window
prefix0–9
Go to window by number
prefixf
Find window by name
prefix.
Move window (enter new index)
Panes (Splits)
prefix%
Split vertical (side by side)
prefix"
Split horizontal (top/bottom)
prefixx
Kill current pane
prefixo
Cycle to next pane
prefix;
Toggle last active pane
prefixq
Show pane numbers (press number to jump)
prefix↑↓←→
Navigate panes by arrow
prefixz
Zoom (toggle pane fullscreen)
prefix!
Break pane into its own window
prefix{
Swap pane with previous
prefix}
Swap pane with next
prefixSpace
Cycle pane layouts
Resize Panes
prefixCtrl
Resize pane up
prefixCtrl
Resize pane down
prefixCtrl
Resize pane left
prefixCtrl
Resize pane right
prefixAlt↑/↓/←/→
Resize pane (larger steps)
prefixM-1
Layout: even horizontal
prefixM-2
Layout: even vertical
prefixM-3
Layout: main horizontal
prefixM-4
Layout: main vertical
prefixM-5
Layout: tiled
Copy Mode (vi)
prefix[
Enter copy mode
q / Esc
Exit copy mode
Space
Start selection
Enter
Copy selection & exit
v
Start selection (vi mode)
V
Select whole line
Ctrlv
Rectangle selection
y
Yank selection
h j k l
Navigate (vi keys)
w / b
Jump by word fwd / bwd
g / G
Top / bottom of buffer
/ / ?
Search fwd / bwd in buffer
prefix]
Paste copied text
prefix=
List all paste buffers
Misc & Config
prefix?
Show all keybindings
prefix:
Enter command mode
prefixt
Show clock
prefix~
Show messages / log
prefixr
Reload config (if bound)
:source-file ~/.tmux.conf
Reload config
prefixI
Install plugins (TPM)
prefixU
Update plugins (TPM)
CLI Commands
tmux
Start new session
tmux new -s <name>
New named session
tmux ls
List sessions
tmux attach
Attach to last session
tmux attach -t <name>
Attach to named session
tmux kill-session -t <name>
Kill named session
tmux kill-server
Kill all sessions & server
tmux rename-session -t old new
Rename session
tmux move-window -t <session>
Move window to session
tmux show-options -g
Show global options