Software

Applications

GNU screen 5 proves it's still got game even after 37 years

First major version in two decades is worth getting to know


GNU screen is included in most Linux distros, but newer, fancier tools such as tmux often outshine it.

GNU screen 5.0.0 is the latest version of a tool that's been around since early 1987. This release has multiple tweaks to its (admittedly basic) user interface, much improved color handling, and better authentication support, including the ability to password-protect screen sessions.

This is only the second major release this century. Screen, which we will capitalize for clarity, is old enough that the history of its releases is obscure, but initial release notes were published in 1987. A possibly unofficial version 4 appeared around 2004, replaced by a more official 4.2.0 in 2014. The last point release, 4.9, was two years ago.

GNU screen showing two different types of system monitor. From Solaris to Xenix, screen is very similar

Screen is a terminal multiplexer, or a sort of call-forwarding service for the Unix command line. There are newer ones, which we'll get to, but Screen can do most of what they do.

For those who aren't habitual command line jockeys, we'll try to explain with a parallel. Imagine you are sitting at home on a laptop and you open a terminal window on your computer, then use that window to SSH into a different computer at the office and start some long, complicated process that will take hours. This doesn't have to be anything arcanely technical. Let's say you're writing a book and have several files open, one with the list of contents, another with a scratchpad, and the main draft document.

If you use a simple connection and accidentally close the window, you've lost that terminal session with three files open. Even if you saved all your documents and haven't lost any work, it will take some time to reopen them and find where you were. Screen puts a rerouting layer between your terminal window and the computers you're talking to. So, before you connect, you run Screen, then connect. If your laptop's battery suddenly runs out, no problem.

The next day, you retrieve the power lead, open Screen, and reconnect to yesterday's session with screen -r – and there are your files, exactly where you left them. Or you could switch to your desktop, open Screen and attach to that waiting session by name. Screen is capable enough that the different sessions can be on different computers, so a single terminal can manage multiple connections at once.

There are more modern terminal multiplexers around, such as tmux or the simpler dvtm, which only handles local sessions but works with the separate abduco to handle remote ones. A fancy modern equivalent, written in Rust, is Zellij. The most visible difference is that these all are tiling environments. Separate sessions appear side-by-side, or any other arrangement you prefer, on screen – all in text mode, without any graphical environment, including on the system console. However, Screen can do that as well. Pressing Ctrl+a, S splits the screen horizontally, or Ctrl+a, | splits it vertically.

As you might expect for a non-obvious program that's been around for decades, there are lots of tutorials for Screen around. It may take a while for them to pick up the new features in this release – and it will doubtless take most distros a while to incorporate version 5 too – but that doesn't reduce their helpfulness.

The biggest advantage of Screen over its younger rivals is its ubiquity. It runs on more or less every Unix-like OS out there, and has few dependencies. ®

Send us news
52 Comments

Raspberry Pi 4 bugs throw wrench in the works for Fedora 41

Problems also afflict the Pi Pico 2's chip

Zen Browser is a no-Google zone that offers tiling nirvana

A Firefox fork aimed at power surfers

Double Debian update: 11.11 and 12.7 arrive at once

But Bullseye's days are numbered and it's time to think about upgrading

Brace for glitches and GRUB grumbles as Ubuntu 24.04.1 lands

Now the Numbat has been neatened, you can replace your Jellyfish – if you dare

Linux Deepin 23: A polished distro from China that Western desktops could learn from

A glimpse into the rapidly advancing world of Chinese open source

Rust for Linux maintainer steps down in frustration with 'nontechnical nonsense'

Community seems to C Rust more as a burden than a benefit

CockroachDB scurries off to proprietary software land

As VC-owned fauxpen source biz yells 'show me the money,' more may follow to the peril of the community

Amazon congratulates itself for AI code that mostly works

Web services souk celebrates 'leader' designation for Q Developer

If every PC is going to be an AI PC, they better be as good at all the things trad PCs can do

Microsoft's Copilot+ machines suck at one of computing's oldest use cases

Oreon Lime is AlmaLinux with a desktop twist

Enterprise-level long-term stability, but a little friendlier

Feds, US states sue RealPage for building rent-hiking software for landlords

Algorithm just a fancy way to collude using private info, prosecutors say

Of course the Internet Archive’s digital lending broke the law, appeals court says

Sorry, no, you can’t just digitize, share copyrighted books without permission