Common
^B :
command mode
command: set mouse on
- enable mouse navigation
Panes
^B %
split vertically^B "
split horizontally^B arrow_keys
switch active pane
^B z
zoom in and out currently active pane
command: resize-pane -D/U/L/R <number>
resize command for current pane (down/up/left/right)
Help
^B ?
show help
Windows
^B c
create a window (a set of panes)^B n
next window (pane set)^B p
previous window (pane set)
Sessions
^B d
detach session (run in background)tmux attach
- restore last sessiontmux ls
- list currently running sessions (to restore one later)tmux attach
-t^B $
rename session^B s
list of sessions inside tmux (to select one interactively)tmux new -s <session_name>
- create a new named sessiontmux kill-session -t <session_name_or_number>
- kill specific session
Selection
^B [
switch to scroll modeq
- exit scroll mode^space
mark selection start^W
mark selection end and copy selection^B ]
insert copied text