← 🏠 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 sessiontmux
Start named sessiontmux new -s lab
List sessionstmux ls
Attach to sessiontmux attach -t lab
Detach sessionCtrl+b then d
Kill sessiontmux kill-session -t lab

🪟 Windows

Create windowCtrl+b then c
Rename windowCtrl+b then ,
Next windowCtrl+b then n
Previous windowCtrl+b then p
Switch by numberCtrl+b then 0-9
Close windowexit

📦 Panes

Split verticalCtrl+b then %
Split horizontalCtrl+b then "
Move between panesCtrl+b then arrow keys
Resize paneCtrl+b then Ctrl+arrow
Toggle zoomCtrl+b then z
Close paneexit

📋 Copy Mode

Enter copy modeCtrl+b then [
ScrollArrow keys or Page Up/Down
Start selectionSpace
Copy selectionEnter
Paste bufferCtrl+b then ]

🤖 AI Agent Workflow

Pane 1Claude / ChatGPT agent
Pane 2Code editor or logs
Pane 3GitHub workflow commands
Pane 4Cloudflare deployment monitoring
Recommended setuptmux + 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.