C-a
is the prefix key (C-b
is default).
Command | Description |
---|---|
tmux new -s <name> | creates a new session |
tmux attach -t <name> | attach to a session |
C-a :kill-session | kills a session |
tmux ls | see which sessions are running |
C-a <n> | goes to a window |
C-a n | next window |
C-a p | previous window |
C-a d | detach from session |
C-a o | go to the other pane |
C-a z | toggle full-screen pane |
C-a C-<arrow-key> | resize pane in the direction of the key |
C-d | remove pane |
C-a ( | previous session |
C-a ) | next session |
C-a s | choose a session |
C-a , | rename current window |
C-a $ | rename current session |
C-a " | split vertically |
C-a % | split horizontally |
C-a x | kill current pane |
C-a q | jump to pane by index |
C-a { | swap current pane with the next one |
C-a } | swap current pane with the previous one |