← Cheat Sheets

tmux Basics

Sessions, windows and panes.

# tmux Basics

Sessions, windows and panes.

Default prefix: **Ctrl+b**, then the key.

| Action | Keys |
|---|---|
| New window | `c` |
| Next / previous window | `n` / `p` |
| Rename window | `,` |
| Split left/right | `%` |
| Split top/bottom | `"` |
| Move between panes | arrow keys |
| Zoom pane | `z` |
| Close pane | `x` |
| Detach | `d` |
| Scroll / copy mode | `[` |

```bash
tmux new -s work       # new named session
tmux ls                # list sessions
tmux attach -t work    # reattach
tmux kill-session -t work
```