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.

Developer Tools United Kingdom 2026.11.19
Developer Tools United Kingdom Terminal multiplexing and session persistence #open source #developer tools #Linux #macOS #Command Line #Remote Operations
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

Visit tmux Website → https://github.com/tmux/tmux
Visit Website ↗