CtrlK

Fundamentals

Tmux

Help

prefix ?
tmux list-keys
https://tmuxcheatsheet.com/

Copy mode

Enter copy mode:

prefix [

Go to topmost line:

g

Go to bottom most line:

G

Move one word at a time:

Forward: w
Backward: b

Search:

Forward: /
Backward: ?

Sessions

New session:

tmux
tmux new -s mysession

Kill session:

tmux kill-session -t mysession
kill-session (current one)
tmux kill-session -a (All but current one)

Attach to a session:

tmux a
tmux a -t mysession

Rename session:

prefix $

Detach session:

prefix d

List sessions:

tmux ls

Windows

Create new window:

prefix c

Rename current window:

prefix ,

Close current window:

prefix &

Next window:

prefix n

List windows:

prefix w

Select/switch windows by numbers:

prefix 0..9

Panes

Zoom in and out of a pane: vv helpful

prefix z

Splits

Vertical line in middle:

prefix %

Horizontal line in middle:

prefix "

Switching to panes:

prefix arrow keys

Move a pane:

Left: prefix {
Right: prefix }

Close current pane:

prefix x

Swtich to next pane:

prefix o

Select/switch panes by numbers:

prefix q 0..9

Resize pane height or width:

prefix + arrow keys (Both at the same time)