Guides
Use these guides to run tmux tasks from a terminal or a shell script. Start with getting started to create a session, window, and pane. Concepts explains their identities and relationships.
Examples provides complete scripts with setup and cleanup.
The command references for new-session
and capture-pane describe their flags
for the selected tmux release. The guides state their prerequisites and own
their private server cleanup.
- Getting started Install tmux and run a complete example.
- Attaching to tmux Select a socket and find or create a session.
- Sending keys Send literal text, named keys, and Enter.
- Capturing output Read the screen or scrollback and wait for a result.
- Filtering and querying Find objects and handle missing or ambiguous matches.
- Testing Use isolated tmux servers and manage test cleanup.
- tmux support Find the tmux release every port requires and how an older daemon is refused.