tmux Cheatsheet
Session, window, and pane management at your fingertips.
Sessions
tmuxStart a new session with a default name.
tmux new -s <name>Start a new named session.
tmux lsList sessions.
tmux attach -t <name>Attach to a session.
tmux kill-session -t <name>Kill a session.
C-b dDetach from current session.
Windows
C-b cCreate a new window.
C-b ,Rename current window.
C-b p / C-b nPrevious / next window.
C-b <number>Jump to window number.
C-b wList windows and select one interactively.
C-b &Close current window.
Panes
C-b %Split vertically.
C-b "Split horizontally.
C-b ←/↑/→/↓Move between panes with arrow keys.
C-b oCycle through panes.
C-b xClose current pane.
C-b zToggle zoom for current pane.
C-b :resize-pane -L/R/U/D <n>Resize panes via command prompt.
Copy Mode and Scrollback
C-b [Enter copy mode (scrollback).
PgUp/PgDnScroll up / down in copy mode.
SpaceStart selection in copy mode.
EnterCopy selection to buffer and exit copy mode.
C-b ]Paste last copied buffer.
Misc Essentials
C-b :Open tmux command prompt.
C-b ?Show key bindings help.
C-b tShow a big clock (handy for breaks).