PROVIDER - Terminal multiplexing and session persistence
tmux
tmux is a terminal multiplexer managing any number of sessions and panes in 1 window, letting an attach command restore work after SSH drops and allowing 2 or more people to share a session; the gaps are key binding memorisation, cryptic config and no GUI.
4.5pts
Service Overview
tmux is the classic terminal multiplexer: it packs several shell sessions into one terminal window and keeps them alive independently of the terminal process.
In the development tools category it is terminal infrastructure: local development, remote operations and interactive CI debugging all rely on its session persistence.
Key Strengths
- Session management: split windows and panes freely
- Session persistence: reconnect without losing state
- Shared sessions: multiple people can attach
- Config driven: 1 file defines behaviour
- Zero dependencies: one binary does the job
Product Ecosystem
Platform capabilities
Session, window and pane management, copy mode and scrollback, customisable status bar, scriptable key bindings and full shell compatibility.
Integrations
Works with SSH, Docker, Kubernetes, Vim or Neovim, fzf and any CLI tooling.
Typical scenarios
Long remote server tasks, pair debugging, monitoring several service logs at once and standardising terminal setups.
Limitations
- Learning cost: key bindings need practice
- Config complexity: syntax is cryptic
- No GUI: no graphical settings
- Plugin management: relies on third-party managers
Use Cases
- Long remote tasks (★★★★★): session protection is essential
- Pairing and teaching (★★★★☆): shared sessions work well
- Standardising terminals (★★★★☆): config files version cleanly
- Purely graphical users (★★☆☆☆): the entry threshold is high
Pricing
| Item | Price | Notes |
|---|---|---|
| tmux | $0 | ISC licence, free and open source |
| Package manager install | $0 | Available via brew, apt and dnf |
| Operations cost | Staff time | Configuration and training dominate |
FAQ
How is tmux different from screen?
tmux offers a more modern window model, fuller copy mode and clearer configuration.
How do I recover after a disconnect?
Run tmux attach -t <session> after logging back in to return to the same state.
Does it work on Windows?
Not natively; use it through WSL or a Cygwin environment.
How do I persist configuration?
Keep .tmux.conf in version control or distribute it through a plugin manager.
Code Examples
# Create a named session and start working
tmux new -s dev
# Reattach after a disconnect
tmux attach -t dev
# List and terminate sessions
tmux ls
tmux kill-session -t dev
# Run a long task detached from a script
tmux new -d -s backup '/usr/local/bin/backup.sh'
# ~/.tmux.conf (excerpt)
set -g mouse on
set -g base-index 1
setw -g pane-base-index 1
set -g history-limit 50000
bind | split-window -h
bind - split-window -v
Community & Resources
- Source repository: https://github.com/tmux/tmux
- Documentation: https://github.com/tmux/tmux/wiki
- Configuration references: https://github.com/tmux-plugins
Articles
- 01 GitLab CI/CD Best Practices: From Beginner to Production-Grade Pipelines 07-18
- 02 Prometheus Monitoring System Setup: From Metric Collection to Alert Notifications 07-18
- 03 Ansible Automation Ops Guide: From Configuration Management to Application Deployment 07-18
- 04 Docker Beginner Tutorial: From Installation to Containerized Web Deployment 07-18
- 05 Developer Tools Panorama: What Version Control, Package Managers, CI/CD and Containers Solve 08-12
- 06 Upgrading SVN to 1.8 on CentOS 7 04-02
- 07 Git for Beginners: Working Directory, Staging Area, Repository and Core Commands 08-12
- 08 GitHub Actions CI/CD Tutorial: Automated Build, Test, and Deployment 07-18
- 09 GitHub Copilot Code Review Is Now Generally Available 08-05
- 10 API Integration Guide: REST vs GraphQL Comparison and Selection 07-18