tmux Cheat Sheet

A cheat sheet in English by tanglisha

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

8,128 views 2,279 downloads 25 Jan 2016 History
3.7 avg · 0 ratings

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>

Badges

Nice Cheat Sheet Good Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.