Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications

Categories

🎓 Certifications
🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
CheatGrid
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications
LVLEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

tmux Terminal Multiplexer Cheat Sheet

tmux Terminal Multiplexer Cheat Sheet

Back to Developer Tools
Updated 2026-05-16
Next Topic: Turborepo Monorepo Build System Cheat Sheet

tmux is a terminal multiplexer for Unix-like systems that allows multiple terminal sessions to run simultaneously within a single window, with sessions persisting even after disconnection. It enables detachable sessions that survive SSH drops, system reboots (with plugins), and accidental terminal closures — making it invaluable for remote work, long-running processes, and complex multi-pane workflows. The key mental model: sessions contain windows, windows contain panes — each layer offers progressively finer control over your terminal workspace, with the prefix key (Ctrl+b by default) serving as the gateway to all tmux commands.

What This Cheat Sheet Covers

This topic spans 19 focused tables and 161 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Session ManagementTable 2: Window ManagementTable 3: Pane Management and SplittingTable 4: Prefix Key and Key BindingsTable 5: Copy Mode and ClipboardTable 6: Configuration File (tmux.conf)Table 7: Status Bar CustomizationTable 8: Mouse SupportTable 9: Scripting and AutomationTable 10: Plugin Manager (TPM)Table 11: Advanced Session OperationsTable 12: Pane Synchronization and BroadcastingTable 13: Display and Informational CommandsTable 14: Colors and ThemingTable 15: Environment and VariablesTable 16: Command and SearchTable 17: Remote Work and SSHTable 18: Best Practices and Workflow PatternsTable 19: Miscellaneous Features

Table 1: Session Management

Sessions are the outermost layer of tmux — a self-contained workspace that keeps running on the server even after you disconnect. These are the commands you reach for to create, name, attach to, and tear down those sessions, which is exactly what makes tmux survive a dropped SSH connection. Get comfortable with new, attach, and detach first; everything else falls into place once that reattach loop clicks.

CommandExampleDescription
tmux new
tmux new -s work
• Creates a new named session
• sessions persist after disconnection and can be reattached later
tmux attach
tmux attach -t work
• Attaches to an existing session by name or ID
• reconnects to your work exactly where you left off
tmux detach
Ctrl+b d
• Detaches from the current session
• session continues running in the background
tmux list-sessions
tmux ls
Lists all active sessions with their names, window count, and creation time.
tmux kill-session
tmux kill-session -t work
• Terminates a specific session and all its windows and panes
• cannot be recovered

More in Developer Tools

  • Testing Library for Web Components Cheat Sheet
  • Turborepo Monorepo Build System Cheat Sheet
  • AI-LLM Code Generation Cheat Sheet
  • Docker Desktop for Developers Cheat Sheet
  • Jupyter Notebooks Cheat Sheet
  • RStudio Cheat Sheet
View all 55 topics in Developer Tools