Show Menu
Cheatography

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

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/­default
, 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>
 

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
          Byobu Keybindings Cheat Sheet