up:: [[Tmux]] tags:: #on/computing/tools #cheat-sheet # Tmux Cheat Sheet This is a cheat sheet for my own personal [[Tmux]] configuration. ## General **Prefix Keys**: `crtl + f` and `ctrl + j` | Keybind | Description | | ---------------- | ------------------------ | | `prefix + r`<br> | Reload configuration | | `prefix + (` | Move to previous session | | `prefix + )` | Move to next session | ## Sessions | Keybind | Description | | ------------ | ------------------- | | `prefix + d` | Detach from session | | `prefix +
| Rename session | | `prefix + s` | List all sessions | | Command | Description | | ------------------------------------------------------------------------------------------------------------- | --------------------------------------------- | | `tmux a`, `tmux at`, `tmux attach`, `tmux-attach-session` | Attach to last session | | `tmux a -t mysession`, `tmux at -t mysession`, `tmux attach -t mysession`, `tmux attach-session -t mysession` | Attach to a session with the name *mysession* | ## Windows | Keybind | Description | | -------------- | ------------------------- | | `prefix + c` | Create new window | | `prefix + &` | Close current window | | `prefix + w` | List windows | | `prefix + ,` | Rename current window | | `prefix + v` | Split window vertically | | `prefix + h` | Split window horizontally | | `prefix + p` | Previous window | | `prefix + n` | Next window | | `prefix + 0…9` | Select window by number | | `prefix + l` | Toggle last active window | ## Panes | Keybind | Description | | ---------------------- | -------------------------------------------- | | `prefix + <arrow key>` | Select pane | | `prefix + v` | Split window vertically (creates new pane) | | `prefix + h` | Split window horizontally (creates new pane) | --- > [!createdat] Created at: [[2024-10-09]]