Initial Setup

if ctrl+b isn’t working: (ctrl+b is called the prefix binding)

tmux set -g prefix ^b

Key Combos

ctrl+b s ⇒ Switch between sessions

ctrl+b “ ⇒ Split horizontally

ctrl+b % ⇒ Split vertically

ctrl+b o ⇒ Cycle through panes in the current window

ctrl+b (arrow keys) ⇒ move to pane in that direction

ctrl+b d ⇒ Detach from session and keep everything running (you can even close your shell session)

ctrl+b [ ⇒ Scroll around with arrow keys and use esc to exit

ctrl + b x ⇒ Kill the current pane if it is frozen

ctrl + b <<window number>> ⇒ jumps to that window

Windows

ctrl + b c ⇒ Create new window

ctrl + b n ⇒ Go to next window

ctrl + b p ⇒ Go to previous window

ctrl + b , ⇒ name the current window

ctrl + b :splitw -fv ⇒ create a new vertical split that’s the whole width of the window

Reattaching