List all key bindings
Ctrl-b ?
Open command prompt
Ctrl-b :
Start a new sesssion with given name
$ tmux new -s session_name
Reconnect to an existing session
$ tmux attach -t session_name
List existing sessions
$ tmux list-sessions | ls
```
Kill all sessions
```
$ tmux kill-sessions
```
Kill session
```
tmux kill-session -t session_name
```
Detach current client
```
Ctrl-b d
```
## Windows
Create a new window
```
Ctrl-b c
```
Rename current window
```
Ctrl-b ,
```
Select next window
```
Ctrl-b n
```
Select last window
```
Ctrl-b l
```
Select window from a list
```
Ctrl-b w
```
Select window by number
```
Ctrl-b 0..9
```
Kill the current window
```
Ctrl-b &
```
## Panes
Split the current window in two panes
```
Ctrl-b % | Ctrl-b v #rebinded
```
Split the current horizontally
```
Ctrl-b " | Ctrl-b h #rebinded
```
Kill the current pane
```
Ctrl-b x
```
Go to next pane
```
Ctrl-b o
```
Show pane number, when number shows type that number to go to that pane
```
Ctrl-b q
```
Kill/close pane
```
Ctrl-b x or type exit
```
Iterate pane layouts
```
Ctrl-b space
```
Move pane
```
Ctrl-b { | }
```