The Neighbours
Screen is the elder of the terminal
multiplexers, not the only one. This
chapter maps the neighbourhood
honestly: which tool took Screen's
idea and ran further with it, which
ones do a slice of the job, and which
common tools only look like they do.
The neighbours are characterised from
their documentation and long use, not
benchmarked; the lab ran Screen only,
and criteria.md says so.
tmux: the heir
tmux (2007, from the OpenBSD world) is the same idea built a generation later, and for most people starting today it is the multiplexer to learn first. The concepts translate one for one:
| Screen | tmux |
|---|---|
| Session | Session |
| Window | Window |
| Region (split) | Pane |
| Ctrl-A prefix | Ctrl-B prefix |
.screenrc |
~/.tmux.conf |
| Scrollback / copy mode | Copy mode |
screen -ls |
tmux ls |
Where tmux is genuinely ahead: splits are first-class panes with a layout engine, not regions you juggle by hand; every action is a command a script can call, uniformly; the status line, borders and styling are a modern system rather than an escape-code archaeology; and it is under visibly active development, so terminal features arrive there first. If you are choosing a daily driver on your own machines, choose tmux — this series has a tmux guide, and nothing in this one pretends otherwise.
Where Screen still wins, and why this guide exists:
- It is already there. The old server, the minimal container, the appliance, the rescue shell: Screen has been default-installed for decades in places tmux never reached. The skill that transfers is the one the machine in front of you speaks.
- It is a serial terminal too.
screen /dev/ttyUSB0 115200opens a plain connection to a serial device — router consoles, microcontrollers, headless boards. A whole population knows Screen only as this, and it is a real second career tmux does not have. - It does not change. A Screen habit learned in 2005 works today, keystroke for keystroke. For a tool whose whole job is to be there when things break, boring is a feature.
dtach and abduco: the essence, only
dtach keeps exactly one part of Screen — a program that outlives its terminal — and nothing else: no windows, no splits, no copy mode, no status line. A session is a socket and a single program attached to it. abduco is the same thought from the dwm stable, equally spare. If all you ever wanted was "this one command must survive my logout", these are the honest minimum, and they compose with everything because they do almost nothing. What you give up is the whole middle of this guide: the scene, the windows, the shared view.
Byobu: the furnished apartment
Byobu is not a multiplexer but a configuration layer that runs on tmux (or, historically, Screen): sensible defaults, a rich status line, friendly keybindings, a menu for the settings. If the verdict of this chapter's first section ends with "...but I do not want to configure anything", Byobu is the answer people land on. Underneath, every concept from this guide still applies, because the engine is one of the two above.
nohup and disown: not the same job
Every beginner meets the suggestion
that nohup job & is the lightweight
alternative. It answers half the
problem: the job survives your logout.
But there is no going back — no
reattach, no scrollback held for you,
no way to answer the prompt the job
turns out to have asked at hour three.
Its output goes to a file and its input
comes from nowhere. disown in bash is
the same idea after the fact. These
are tools for jobs that are truly
fire-and-forget; the moment a job might
need you again — which is most jobs
that run long enough to be worth
protecting — they are not neighbours
of Screen but of the problem Screen
solves. Chapter 1 named the itch; this
is why the simpler scratch does not
reach it.
A plain second login
Sometimes the neighbour is smaller still: a second SSH connection, a second terminal tab. For one command while a long one runs, that is enough, and reaching for a session is ceremony. Screen earns its keep when the window must outlive the connection, hold a scene, or be shared — the checklist from chapter 1. Tools should be the size of the problem; this guide's tool just happens to solve the problem that appears at 2 a.m., so it is worth having learned it at leisure.