tmux
Contents
This is a cheatsheet for tmux.
It is hopefully helpfully organized. 🙂
Â
Â
Essential
| Keys | Action |
|---|---|
C-b : |
Prompt for a command |
C-b [ |
Enter copy mode |
    Space |
    Start selection (in copy mode) |
    Enter |
    Pick selection and leave (in copy mode) |
C-b ] |
Paste from tmux buffer |
Â
Â
Help
| Keys | Action |
|---|---|
C-b ? |
Show help buffer |
C-b / |
Describe key binding |
Â
Â
Sessions
| Keys | Action |
|---|---|
C-b $ |
Rename current session |
C-b d |
Detach from session |
| Command | Action |
|---|---|
tmux attach-session -t SESSION_NAME |
Reatach to session by name |
    Include -d |
  Detach all other clients + attach yourself |
Note: attach-session can be shortened to attach or a.
Â
Â
Windows
| Keys | Action |
|---|---|
C-b c |
Create window |
C-b , |
Rename current window |
C-b l |
Go to last window |
C-b n |
Go to next window (cycles) |
C-b p |
Go to previous window (cycles) |
Â
Â
Panes
Marking Panes
| Keys | Action |
|---|---|
C-b m |
Mark pane |
C-b M |
Clear marked pane |
Splitting Panes
| Keys | Action |
|---|---|
C-b " |
split horizontally |
C-b % |
split vertically |
Navigating Panes
Shortcuts
| Keys | Action |
|---|---|
C-b ; |
Move to previously active pane |
C-b o |
Go to next pane |
Directional Pane Navigation
| Keys | Action |
|---|---|
C-b Up |
Select pane above |
C-b Down |
Select pane below |
C-b Left |
Select pane to left |
C-b Right |
Select pane to right |
Resizing Panes
| Keys | Action |
|---|---|
C-b z |
Toggle focus (zoom) current pane |
| - | - |
C-b M-Up |
Resize the pane up by 5 |
C-b M-Down |
Resize the pane down by 5 |
C-b M-Left |
Resize the pane left by 5 |
C-b M-Right |
Resize the pane right by 5 |
C-b C-Up |
Resize the pane up |
C-b C-Down |
Resize the pane down |
C-b C-Left |
Resize the pane left |
C-b C-Right |
Resize the pane right |
More
Refer to the tmux section on my tools & configs page for a sample configuration.