Show Menu
Cheatography

tmux Cheat Sheet (DRAFT) by

tmux commands

This is a draft cheat sheet. It is a work in progress and is not finished yet.

basics

Control + b - prefix

panes

tmux split-­window
pre + "
split window vertically
tmux split-­window
pre + %
split window horizo­ntally
tmux swap-pane -[UDLR]
pre + [UDLR]
swap pane
 
pre + q
show pane numbers
 
pre + !
break the pane out of window
 
pre + x
kill current pane

windows

new-window
pre + c
create a new window
select­-window -t :0-9
pre + [0-9]
move to window based on index
rename­-window
pre + ,
rename current window
 
pre + w
list windows
 
pre + n
next window
 
pre + p
previous window

sessions

tmux new -s <se­ssi­on_­nam­e>
 
create new session
tmux attach -t <se­ssi­on_­nam­e>
 
attach existing session
tmux switch -t <se­ssi­on_­nam­e>
 
switch to existing session
tmux list-s­essions
pre + s
list existing sessions
tmux detach
pre + d
detach currently attached session
tmux kill-s­ession -t <se­ssi­on_­nam­e>
 
kill a session
 
pre + $
rename the current session