Skip to content

Instantly share code, notes, and snippets.

@dannymcc
Forked from afair/tmux.cheat
Last active December 7, 2017 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannymcc/e65762c13b2f86b88ef8acbedba3b9f9 to your computer and use it in GitHub Desktop.
Save dannymcc/e65762c13b2f86b88ef8acbedba3b9f9 to your computer and use it in GitHub Desktop.
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^a w
New -s <session> Create ^a c
Attach att -t <session> Rename ^a , <name>
Rename rename-session -t <old> <new> Last ^a l (lower-L)
Kill kill-session -t <session> Close ^a &
========================================== Goto # ^a <0-9>
CONTROLS Next ^a n
========================================== Previous ^a p
Choose ^a w <name>
Detach ^a d
List ^a = ==========================================
Buffer ^a <PgUpDn> PANE (SPLIT WINDOW)
Command ^a : <command> ==========================================
Copy ^a [ ... <space> ... <enter> Show # ^a q
Moving vim/emacs key bindings Split Horiz ^a " --------
Start <space> Split Vert ^a % |
Copy <enter> Pane->Window ^a !
Paste ^a ] Kill ^a x
========================================== Reorganize ^a <space>
SESSION (Set of Windows) Expand ^a <alt><arrow>
========================================== Resize ^a ^<arrow>
Resize x n ^a <n> <arrow>
New ^a :new ^b :new -s <name>
Rename ^a $ Select ^a <arrow>
List ^a s Previous ^a {
Next ^a ( Next ^a }
Previous ^a ) Switch ^a o other
Swap ^a ^o
Last ^a ;
Note: You can still go to the beginning of a line by using ^a^a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment