| name | tmux |
| description | Expert tmux session, window, and pane management for terminal multiplexing, persistent remote workflows, and shell scripting automation. |
| category | development |
| risk | safe |
| source | community |
| date_added | 2026-03-28 |
| author | kostakost2 |
| tags | ["tmux","terminal","multiplexer","sessions","shell","remote","automation"] |
| tools | ["claude","cursor","gemini"] |
tmux — Terminal Multiplexer
Overview
tmux keeps terminal sessions alive across SSH disconnects, splits work across multiple panes, and enables fully scriptable terminal automation. This skill covers session management, window/pane layout, keybinding patterns, and using tmux non-interactively from shell scripts — essential for remote servers, long-running jobs, and automated workflows.
When to Use This Skill
- Use when setting up or managing persistent terminal sessions on remote servers
- Use when the user needs to run long-running processes that survive SSH disconnects
- Use when scripting multi-pane terminal layouts (e.g., logs + shell + editor)
- Use when automating
tmux commands from bash scripts without user interaction
How It Works
tmux has three hierarchy levels: sessions (top level, survives disconnects), windows (tabs within a session), and panes (splits within a window). Everything is controllable from outside via tmux <command> or from inside via the prefix key (Ctrl-b by default).
Session Management
tmux new-session -s work
tmux new-session -d -s work
tmux new-session -d -s build -x 220 -y 50 "make all"
tmux attach -t work
tmux attach
tmux list-sessions
tmux ls
tmux kill-session -t work
tmux kill-session -a
tmux rename-session -t old-name new-name
tmux switch-client -t other-session
tmux has-session -t work 2>/dev/null && echo "exists"