Cheatography
https://cheatography.com
Terminal multiplexer for Unix-like operating systems
Commands
tmux |
start |
tmux new |
start new session without name |
tmux new -s <sn> |
start with session name sn |
tmux a -t |
reattach session |
tmux a -t <sn> |
reattach named session |
tmux attach |
attach to previous session |
tmux attach -t <sn> |
attach to sn session |
tmux restore |
restore session |
tmux ls |
get list sessions |
tmux kill-session -t <sn> |
close sessioon sn |
tmux kill-server |
shutdown all sessions |
|
|
Hot-keys
Ctrl-B c |
new window |
Ctrl-B n |
go to next window |
Ctrl-B p |
go to previous window |
Ctrl-B 0..9 |
go to 0..9 window |
Ctrl-B w |
get list all windows |
Ctrl-B l |
go to previous window |
Ctrl-B " |
separate window horizontal |
Ctrl-B % |
separate window vertical |
Ctrl-B →←↑↓ |
select panel |
Ctrl-B x |
close panel |
Ctrl-B & |
close window |
Ctrl-B d |
detach of session |
|
|
Configuration
set-option -g -q mouse on
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M" |
vim /etc/tmux.conf - mouse set on
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets