🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

⚙️ Process Management February 27, 2026 7

Linux Command: screen

Terminal multiplexer for persistent sessions

Terminal — Process Management
Command
$ screen -S deploy
Output
Creates a new screen session named "deploy".

screen is a terminal multiplexer that creates persistent terminal sessions you can detach from and reattach to later. It allows running multiple shell sessions within a single terminal and keeps them alive after SSH disconnection. screen is essential for remote server work where SSH connections may drop. Unlike nohup, screen lets you reattach to running sessions and see their output. It supports multiple windows, split views, copy/paste between windows, and session sharing. screen has been the standard terminal multiplexer for decades. tmux is the more modern alternative with better defaults, but screen remains ubiquitous and available on virtually every Linux system.

Syntax

screen [OPTION]... [COMMAND]

Common Examples

  • screen -S deploy — Creates a new screen session named "deploy".
  • Ctrl+A then D — Detaches from the current session, leaving it running in the background.
  • screen -ls — Shows all running screen sessions.
  • screen -r deploy — Reconnects to the deploy session after SSH reconnection.

Pro Tips

    Master this and 230+ other Linux commands with our comprehensive eBooks and cheat sheets.

    Share this tip