tmux
Terminal sessionsPackage: tmux
A terminal session that survives disconnection: what runs inside carries on when SSH drops, and is found again with tmux attach. For a long operation started by hand, it is the insurance that a network drop will not kill it.
What its options do in the lessons
From the same glossary the lessons render under their commands, so the two cannot disagree.
tmux -V- Prints the tmux version.
tmux -s- Names the session as it is created. Unnamed, it is called
0, then1, and after three you no longer know which holds what. tmux -t- Names the session being targeted, for
attachas forkill-session. tmux -A- With
new-session, attaches to the session if it already exists instead of failing.tmux new-session -A -s workis therefore the only command to remember: it creates or resumes, as appropriate.
