Show Menu

tmux Cheat Sheet by

Default command key is Ctrl-b. This will be annoted below by ^
tmux

Command Line

Start a new session
tmux [new session name]
List sessions
tmux ls
Attach to existing session
tmux a -t [name or number from ls]
Kill server and all sessions
tmux kill-s­erver
Kill named session
Kill named session tmux kill-s­¬≠ession -t [session name]
If starting a new session fails with something like no server running on /tmp/t­mux­-10­01/­def­ault, use:

tmux new-se­ssion -s [new session name]

Moving around

Enter copy mode (Also scroll)
[ (q to quit)
Quit copy mode
q
Paste
]
 

Sessions

Detatch
d
New session
:new
List sessions
s
Name session
$

Panes

Split horizo­ntally
"
Split vertically
%
Next pane
o
Previous pane
;
Kill this pane
x
Kill all panes but this one
!
Swap panes
Ctrl-O
Resize pane
Alt-<arrow key to resize in that direct­ion>
 

Windows

New window
c
Rename window
,
Next window
n
Previous window
p
Last window
l (small L)
List windows
w
Find window
f <na­me>
Kill window
&
Move window
.

Command Line

Start a new session
tmux [new -s <na­me>]
List sessions
tmux ls
Attach to existing session
tmux a -t <name or number from ls>
Kill server and all sessions
tmux kill-s­erver
Kill named session
tmux kill-s­ession -t <na­me>

Download the tmux Cheat Sheet

1 Page
//media.cheatography.com/storage/thumb/tanglisha_tmux.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          tmux the terminal multiplexer Cheat Sheet
          Tmux basics Cheat Sheet