Tmux: Essential Shortcuts

Terminal

Tmux: Essential Shortcuts

Default prefix: Ctrl+b

Sessions

Key/CommandAction
tmux new -s devCreate session named dev
tmux lsList sessions
tmux attach -t devAttach to session
Prefix + dDetach session

Windows

KeyAction
Prefix + cNew window
Prefix + ,Rename window
Prefix + n / pNext / previous
Prefix + &Close window

Panes

KeyAction
Prefix + %Split vertically
Prefix + "Split horizontally
Prefix + oSwitch pane
Prefix + xClose pane
Prefix + zZoom current pane

Tip

In ~/.tmux.conf, set set -g mouse on to resize panes with the mouse.