tmux Quick Reference
Commands
Command |
Description |
tmux |
Start a new tmux session |
tmux ls |
List all running sessions |
tmux attach -t 0 |
Connect to session named 0 |
tmux new -s database |
Create a new session named `database` |
tmux rename-session -t 0 database |
Rename existing session from `0` to `database` |
Command Keys
Keys |
Description |
C-b % |
Split a pane into left and right |
C-b " |
Split a pane into top and bottom |
C-b <arrow key> |
Navigate to different pane |
exit or Ctrl-d |
Close the pane |
C-b c |
Create a new window |
C-b p |
Go to the previous window |
C-b n |
Go to the next window |
C-b <number> |
Go to specific window number |
C-b d |
Detach from the current session |
C-b D |
Choose which session to detach |
C-b z |
Toggle the pane fullscreen |
C-b , |
Rename current window |
C-b ? |
List available commands |
*C-b
means press and hold the Ctrl
key and press b
.
References