Quick Reference
FreshFast lookup for tmux commands, shortcuts, and troubleshooting.
Quick Links
| Reference | Description |
|---|---|
| Commands | CLI commands for scripting |
| Keyboard Shortcuts | Interactive shortcuts |
| Troubleshooting | Common issues and fixes |
Essential Shortcuts
Prefix Key
All shortcuts start with the prefix Ctrl+b (default). Press prefix, release, then press action key.
| Action | Shortcut |
|---|---|
| Sessions | |
| Detach | Ctrl+b d |
| List sessions | Ctrl+b s |
| Windows | |
| New window | Ctrl+b c |
| Next window | Ctrl+b n |
| Previous window | Ctrl+b p |
| Panes | |
| Split horizontal | Ctrl+b " |
| Split vertical | Ctrl+b % |
| Navigate | Ctrl+b arrow |
| Zoom toggle | Ctrl+b z |
| Close pane | Ctrl+b x |
| Other | |
| Command mode | Ctrl+b : |
| Help | Ctrl+b ? |
Essential Commands
bash
# Sessions
tmux new -s name # New named session
tmux ls # List sessions
tmux attach -t name # Attach to session
tmux kill-session -t name # Kill session
# Quick attach-or-create
tmux new-session -A -s nameQuick Troubleshooting
| Problem | Solution |
|---|---|
| Session lost on SSH disconnect | tmux attach to reconnect |
| "no sessions" error | Create one: tmux new -s name |
| Prefix not working | Check ~/.tmux.conf for conflicts |
| Nested tmux warning | Use different prefix on inner/outer |