tmux Cheat Sheet: Essential Commands and Shortcuts
Published Jan 1, 2026
⋅
Updated Jan 1, 2026
⋅
0 minutes read
A quick reference guide for tmux commands and shortcuts. For managing my remote claude code sessions
Session Management
Create a new session
tmux new -s claudeDetach from session
Ctrl + b, then dList all sessions
tmux lsAttach to existing session
tmux attach -t claudeCreate or attach (auto)
tmux new -A -s claudeCreates session if missing, otherwise attaches to existing.
SSH and attach workflow
ssh user@server-ip
tmux attach -t claudeWindow Management
Create new window
Ctrl + b, then cSession Control
Kill specific session
tmux kill-session -t claudeKill all sessions
tmux kill-serverReconnect after network drop
ssh user@server-ip
tmux attach -t claudeQuick Workflow
ssh server
tmux new -A -s claude
# run your tasks
Ctrl + b, then d