Skip to content

Instantly share code, notes, and snippets.

@afair
Last active October 11, 2023 13:48
Show Gist options
  • Save afair/3489752 to your computer and use it in GitHub Desktop.
Save afair/3489752 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 ^b w
New new -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
========================================== Goto # ^b <0-9>
CONTROLS Next ^b n
========================================== Previous ^b p
Choose ^b w <name>
Detach ^b d
List ^b = ==========================================
Buffer ^b <PgUpDn> PANE (SPLIT WINDOW)
Command ^b : <command> ==========================================
Copy ^b [ ... <space> ... <enter> Show # ^b q
Moving vim/emacs key bindings Split Horiz ^b " --------
Start <space> Split Vert ^b % |
Copy <enter> Pane->Window ^b !
Paste ^b ] Kill ^b x
========================================== Reorganize ^b <space>
SESSION (Set of Windows) Expand ^b <alt><arrow>
========================================== Resize ^b ^<arrow>
Resize x n ^b <n> <arrow>
New ^b :new ^b :new -s <name>
Rename ^b $ Select ^b <arrow>
List ^b s Previous ^b {
Next ^b ( Next ^b }
Previous ^b ) Switch ^b o other
Swap ^b ^o
Last ^b ;
Copy link

ghost commented Mar 2, 2013

Thank you for this reference. It is a great help to me. :-)

@zachlatta
Copy link

Super useful!

@switchspan
Copy link

Very handy. Thanks!

@eranchetz
Copy link

Thanks, this is great!
I love to use ^b $ to change the session name...

@afair
Copy link
Author

afair commented Oct 4, 2013

Thanks everyone!

Thanks for the feedback, @eranchetz. I've updated the session section accordingly.

@AbrarSyed
Copy link

👍
most useful thing ever. bookmared

@v2chrisb
Copy link

v2chrisb commented Jan 1, 2014

Best tmux cheat sheet I've found after sporadically searching for the last week. Thanks, !

@simeonwillbanks
Copy link

Very useful. Thank you.

@swe20144
Copy link

swe20144 commented May 6, 2014

awesome buddy

@Congee
Copy link

Congee commented May 17, 2014

great cheat sheet. :)

@SergRendol
Copy link

Excelent QR (quick Ref)!

@zodman
Copy link

zodman commented Nov 25, 2014

gj!

@samof76
Copy link

samof76 commented Aug 12, 2015

Fantastic!

Copy link

ghost commented Oct 25, 2015

Thanks, I just keep getting stuck with the splits.

@573
Copy link

573 commented Nov 18, 2015

Thanks, how did you write that cheat file, any special tool for formatting?

@573
Copy link

573 commented Nov 18, 2015

ok i see, maybe it was:

cat asciifile | pr -2 -t

@hansbala
Copy link

This is great

@udoyen
Copy link

udoyen commented May 17, 2017

greate resource

@yuhcaesar
Copy link

The command of creating a new session should be "tmux new -s ".

@franckweb
Copy link

Thank you!, cool summary 👍

@maxtortime
Copy link

Simple and handy Thanks!

@khanhtc1202
Copy link

khanhtc1202 commented Nov 4, 2017

👍

@richardleandro1
Copy link

Thank you!

@fre0n
Copy link

fre0n commented Jul 7, 2021

Best one out there.

@sprowell
Copy link

This is the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment