tmux shortcuts Cheat Sheet

A cheat sheet in English by mutanclan

tmux keyboard shortcuts

17,692 views 2,669 downloads 9 Apr 2019 History
3.7 avg · 0 ratings

prefix

CTRL-a
prefix

Buffers

#
list buffers
=
choose buffer
]
paste buffer

tmux-r­esu­rrect

CTRL-s
Save session
CTRL-r
Reload last session

Miscel­leanous

X
confirm before killing session
R
reload tmux config­uration
?
list keys
t
show clock
:
enter command mode

window actions

c
create new window
,
rename window
0-9
select window 0-9
w
choose window intera­ctively
f
prompt for search in current window
|
split window vertically mod
-
split window horizo­ntally mod
mod means these shortcuts are modified in tmux.conf

navigate panes and windows vim-like

h
select left pane
j
select down pane
k
select upper pane
l
select right pane
CTRL-h
select previous window
CTRL-l
select next window
Customized shortcuts

pane actions

CTRL-o
rotate panes forwards
ALT-o
rotate panes backwards
!
break the current pane out of the window
;
move to the previously active pane
o
select next pane
q
display pane indexes
m
mark current pane
M
clear the marked pane
x
kill current pane
{
swap pane with the previous pane
}
swap pane with the next pane
ALT-1 to ALT-5
arrange panes in preset layout
CTRL-Arrow
Resize pane in arrow direction by 1
z
toggle zoom

Copy mode vi

[
enter copy mode
q
quit copy mode
Space
begin selection
Enter
copy selection and cancel
V
select line
W
next space
v
rectangle toggle
Mainly works like selecting text in vi

client

(
switch to previous client
)
switch to next client
CTRL-z
suspend client
d
detach client
r
refresh client
choose­-client
open a pane into client mode
s
open a pane to show sessions

Badges

Nice Cheat Sheet

Comments

No comments yet.

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