TMUX CHEATSHEET

1. Windows

Start a new session

$ tmux new -s (SESSION-NAME)

Start a new session with the name mysession and window mywindow

$ tmux new -s (SESSION-NAME) -n (WINDOW-NAME)

Create window

ctrl + b   c

Rename current window

ctrl + b   ,

Close current window

ctrl + b   &

Previous window

ctrl + b   p

Next window

ctrl + b   n

Switch/select window by number

ctrl + b   0 ... 9

Move current window to the left by one position

:swap-window -t -1

Reorder window, swap window number 2(src) and 1(dst)

:swap-window -s 2 -t 1