screen
GNU Screen is a terminal multiplexer that runs several separate screens on a single physical character-based terminal. Screen sessions can be detached and resumed later on a different terminal.
Description
Screen provides VT100/ANSI terminal emulation and supports multiple virtual terminals on one physical terminal. Each virtual terminal emulates a DEC VT100 plus several ANSI X3.64 and ISO 2022 functions. Sessions can be detached and reattached later, even from different terminals.
It includes features like configurable input and output translation, serial port support, configurable logging, and multi-user support. This makes it useful for maintaining persistent terminal sessions, especially in remote or unstable connections.
Screen is particularly valuable for long-running processes that need to survive network interruptions or for managing multiple shell sessions efficiently.
How It Works
Screen creates virtual terminals emulating VT100/ANSI standards with support for ANSI X3.64 and ISO 2022 functions. It multiplexes multiple sessions on a single physical terminal, allowing detachment and reattachment. Features include scrollback history buffers, flow control, logging, UTF-8 encoding, and multi-display/multi-user modes via socket-based session management.
Installation
sudo apt install screenFlags
Examples
screen -hscreen [-opts] [cmd [args]]screen -r [host.tty]screen -ls [match]screen -dmS namescreen -Rscreen -D -RR