HomeNotesTmux Shortcuts

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 claude

Detach from session

Ctrl + b, then d

List all sessions

tmux ls

Attach to existing session

tmux attach -t claude

Create or attach (auto)

tmux new -A -s claude

Creates session if missing, otherwise attaches to existing.

SSH and attach workflow

ssh user@server-ip
tmux attach -t claude

Window Management

Create new window

Ctrl + b, then c

Session Control

Kill specific session

tmux kill-session -t claude

Kill all sessions

tmux kill-server

Reconnect after network drop

ssh user@server-ip
tmux attach -t claude

Quick Workflow

ssh server
tmux new -A -s claude
# run your tasks
Ctrl + b, then d