- Session Management
- Window Management
- Pane Management
- Navigation
- Miscellaneous
- Customization
- Common Use Cases
- Troubleshooting
Command | Description |
---|---|
tmux |
Start a new session |
tmux new -s session_name |
Start a new named session |
tmux ls |
List all sessions |
tmux attach |
Attach to the last session |
tmux attach -t session_name |
Attach to a specific named session |
Ctrl-b d |
Detach from the current session |
tmux kill-session -t session_name |
Kill a specific session |
Command | Description |
---|---|
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 0-9 |
Switch to window by number |
Ctrl-b , |
Rename the current window |
Ctrl-b & |
Close the current window |
Command | Description |
---|---|
Ctrl-b " |
Split pane horizontally |
Ctrl-b % |
Split pane vertically |
Ctrl-b o |
Switch to the next pane |
Ctrl-b q 0-9 |
Switch to a specific pane by number |
Ctrl-b Space |
Toggle between pane layouts |
Ctrl-b z |
Zoom/unzoom the current pane |
Ctrl-b x |
Close the current pane |
Command | Description |
---|---|
Ctrl-b [ |
Enter scroll mode |
q |
Exit scroll mode |
/ |
Search in scroll mode |
Command | Description |
---|---|
Ctrl-b ? |
List all keybindings |
Ctrl-b : |
Enter command mode |
:setw synchronize-panes |
Toggle synchronized panes |
- Config file location:
~/.tmux.conf
- Reload config:
tmux source-file ~/.tmux.conf
- Start a new session on a remote server: