tmux crib sheet
I use Ctrl-a as my prefix instead of Ctrl-b because it's more convenient for me. If you use this crib sheet, just swap the prefix in your head accordingly.
# new session
tmux new -s hello
# reattach to session
tmux a -t hello
Sessions
Ctrl-a $
Rename session
Ctrl-a d
Detach from session
Ctrl-a s
Show all sessions
Ctrl-a (
Go to prev session
Ctrl-a )
Go to next session
Windows
Ctrl-a c
Create window
Ctrl-a ,
Rename curr window
Ctrl-a &
Close curr window
Ctrl-a w
List all window
Ctrl-a p
Prev window
Ctrl-a n
Next window
Ctrl-a l
Toggle last active window
Panes
Ctrl-a %
Split vertical
Ctrl-a "
Split horizontal
Ctrl-a ;
Toggle last active pane
Ctrl-a !
Convert pane to window
Ctrl-a x
Close curr pane
Misc.
Ctrl-a :
Enter command mode
Ctrl-a ?
List key bindings