1. TMUX Cheatsheet
Function Keys / command Line Function vi emacs
Global options General
Command prefix C-b Start copy mode [ [
Enter command mode prefix : Quit copy mode q Escape
show every session, window, pane tmux info Movement
set option for all sessions prefix :set -g <option> Cursor up k Up
set option for all windows prefix :setw -g <option> Cursor down j Down
Show key bindings prefix ? Cursor left h Left
Set vi mode for editing prefix : set-window-option -g mode-keys vi Cursor right l Right
Set emacs mode for editing prefix : set-window-option -g mode-keys emacs Cursor start of indent ^ M-m
Session Cursor start of line 0 C-a
list running sessions tmux <ls | list-sessions> or prefix s Cursor end of line $ C-e
attach to running session tmux at[tach-session] [-t <sessionname>] Word next w/W M-f
start new session tmux [new[-session]] Word previous b/B M-b
start new named session tmux new -s <sessionname> Line top of page H M-R
name current session prefix $ Line middle of page M M-r
move to previous/next session prefix (/) Line bottom of page L
detach from session prefix d Scroll page up one line C-Up or K C-Up
kill session tmux kill-session -t <sessionname> Scroll page down one line C-Down or J C-Down
Window Half page down C-d M-Down
create new window prefix c Half page up C-u M-Up
rename current window prefix , Page previous C-b or pgup Page up
move to previous/next window prefix p/n Page next C-f or pgdn Page down
move to window by num prefix <0-9> Line top of all g
move to window by menu prefix w Line bottom of all G
find window by name prefix f Search
swap/reorder window A and B prefix :swap-window -s <B> -t <A> Search forward / C-s
close current window prefix & Search backward ? C-r
kill current window prefix k Search again (next) n n
Window Panes Search again (previous) N
split window vertically prefix % Edit
split window horizontally prefix " Start selection Space C-Space
move to pane left/right prefix leftarrow/rightarrow Copy selection Enter M-w
move to pane up/down prefix uparrow/downarrow Clear selection Escape C-g
move to last active pane prefix ; Paste buffer p or prefix ] C-y or prefix ]
move to next pane prefix o Delete to end of line D C-k
move to pane by number prefix q Delete entire line d C-u
move this pane left prefix { Transpose chars C-t
move this pane right prefix }
Toggle pane zoom prefix z
Convert pane into window prefix !
Move win <num> to a pane in this win prefix :join-pane -s <num>
Move this pane to window <num> prefix :join-pane -t <num>
toggle send cmd to all panes in window prefix :setw synchronize-panes
kill/close current pane prefix x
Buffers
copy visible contents of pane to buffer prefix :capture-pane
list buffers prefix :list-buffers
select-and-paste a buffer prefix :choose-buffer
show buffer prefix :show-buffer [-b <buffernum>]
save buffer to file prefix :save-buffer [-b <buffernum>] <filename>
paste buffer 0 p or prefix ] or C-y
delete a buffer prefix :delete-buffer -b <buffernum>
by LJ Bryson ( https://www.linkedin.com/in/ljbryson/ , http://debaan.blogspot.com/ )
tmux edit mode (vi and emacs)tmux general