← 🏠 return home
💻 root@linux-lab:~$ tmux attach -t productivity

🐧 TMUX Cheatsheet ⚡

A hacker-style TMUX reference for Linux 🐧, AI agents 🤖, SSH sessions 🔐, homelab workflows ☁️, and terminal productivity 💻.

$ why_tmux

TMUX lets you persist terminal sessions, split panes, monitor logs, run AI agents, SSH into servers, and survive disconnects without losing your workflow 🚀

🚀 Session Management

Start new session tmux
Start named session tmux new -s lab
List sessions tmux ls
Attach to session tmux attach -t lab
Detach session Ctrl+b then d
Kill session tmux kill-session -t lab

🪟 Windows

Create window Ctrl+b then c
Rename window Ctrl+b then ,
Next window Ctrl+b then n
Previous window Ctrl+b then p
Switch by number Ctrl+b then 0-9
Close window exit

📦 Panes

Split vertical Ctrl+b then %
Split horizontal Ctrl+b then "
Move between panes Ctrl+b then arrow keys
Resize pane Ctrl+b then Ctrl+arrow
Toggle zoom Ctrl+b then z
Close pane exit

📋 Copy Mode

Enter copy mode Ctrl+b then [
Scroll Arrow keys or Page Up/Down
Start selection Space
Copy selection Enter
Paste buffer Ctrl+b then ]

🤖 AI Agent Workflow

Pane 1 Claude / ChatGPT agent
Pane 2 Code editor or logs
Pane 3 GitHub workflow commands
Pane 4 Cloudflare deployment monitoring
Recommended setup tmux + neovim + git + agents + SSH
🧠 Recommended AI Agent Layout

Use TMUX with multiple panes for ChatGPT/Claude agents 🤖, deployment logs 📡, Git workflows 🐙, SSH sessions 🔐, and coding terminals 💻. This dramatically improves focus and multitasking during cloud and security work.