Skip to content

Quick Reference

Fresh

Fast lookup for tmux commands, shortcuts, and troubleshooting.

ReferenceDescription
CommandsCLI commands for scripting
Keyboard ShortcutsInteractive shortcuts
TroubleshootingCommon issues and fixes

Essential Shortcuts

Prefix Key

All shortcuts start with the prefix Ctrl+b (default). Press prefix, release, then press action key.

ActionShortcut
Sessions
DetachCtrl+b d
List sessionsCtrl+b s
Windows
New windowCtrl+b c
Next windowCtrl+b n
Previous windowCtrl+b p
Panes
Split horizontalCtrl+b "
Split verticalCtrl+b %
NavigateCtrl+b arrow
Zoom toggleCtrl+b z
Close paneCtrl+b x
Other
Command modeCtrl+b :
HelpCtrl+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 name

Quick Troubleshooting

ProblemSolution
Session lost on SSH disconnecttmux attach to reconnect
"no sessions" errorCreate one: tmux new -s name
Prefix not workingCheck ~/.tmux.conf for conflicts
Nested tmux warningUse different prefix on inner/outer

Generated with AI-powered SOP Generator