Creating a session:
tmux new-session -s work
Attach to a session:
tmux attach -t work
Switch between sessions:
ctrl+b d delete session
ctrl+b ( previous session
ctrl+b ) next session
ctrl+b L ‘last’ (previously used) session
ctrl+b s choose a session from a list
ctrl+b $ rename the current session
ctrl+b c create a new window
ctrl+b , rename the current window
ctrl+b & kill the current window
ctrl+b 1 ... switch to window 1, ..., 9, 0
ctrl+b 9
ctrl+b 0
ctrl+b p previous window
ctrl+b n next window
ctrl+b l ‘last’ (previously used) window
ctrl+b w choose window from a list
ctrl+b x kill the current pane
ctrl+b q display pane numbers for a short while
ctrl+b " split top/bottom
ctrl+b % split left/right
ctrl+b left go to the next pane on the left
ctrl+b right (or one of these other directions)
ctrl+b up
ctrl+b down
ctrl+b o go to the next pane (cycle through all of them)
ctrl+b ; go to the ‘last’ (previously used) pane
ctrl+b { move the current pane to the previous position
ctrl+b } move the current pane to the next position
ctrl+b C-o rotate window ‘up’ (i.e. move all panes)
ctrl+b M-o rotate window ‘down’
ctrl+b ! move the current pane into a new separate window (‘break pane’)
ctrl+b M-1 switch to even-horizontal layout
ctrl+b M-2 switch to even-vertical layout
ctrl+b M-3 switch to main-horizontal layout
ctrl+b M-4 switch to main-vertical layout
ctrl+b M-5 switch to tiled layout
ctrl+b space switch to the next layout