# tmux
*Wednesday, 24th June 2026 - 12:34 UTC+0100*
---
## Getting started
To open tmux:
```bash
tmux
```
## Commands
- To **detach** from current tmux session - `Ctrl+B D`
- To **list active tmux sessions**:
```bash
tmux ls
```
- To **reattach** to an existing tmux session:
```bash
tmux attach -t 0
```
## Basic tmux key bindings
- `Ctrl+B D` - detach from the current session
- `Ctrl+B %` - Split the window horizontally into two panes
- `Ctrl+B "` - Split the window vertically into two panes
- `Ctrl+B {arrow key}` - Move been panes via the arrow key
- `Ctrl+B X` - Close pane
- `Ctrl+B C` - Create a new window
- `Ctrl+B N` - Move to the next window
- `Ctrl+B P` - Move to the previous window
- `Ctrl+B {num}` - Move to a specific window by number.
- `Ctrl+B` - Enter the command line to type commands. Tab completion available.
- `Ctrl+B ?` - View **all** key bindings. Press `Q` to exit.
- `Ctrl+B W` - Open a panel to navigate across windows in multiple sessions.
---
[[Upskilling|← Back to Upskilling]]