Cheatsheet for Tmux
Basic Commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#basic
tmux
tmux ls
#sessions
tmux new -s sessionName
tmux a #attach
tmux kill-session -t sessionName
#window management
Ctrl-b c #create
Ctrl-b n #next
Ctrl-b p #previous
Ctrl-b 0 #window 0
Ctrl-b 1 #window 1
Ctrl-b , #rename
Ctrl-b w #list windows
#usage
Ctrl-b d #detach from tmux
tmux a -t sessionName
tmux attach -t sessionName
Note:
- ctrl-b is when you hold ctrl, b then leave both altogether
This post is licensed under
CC BY 4.0
by the author.