How To Install Screen On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Screen On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

screen

Hold a session open on a remote server. Manage multiple windows with a single SSH connection.

Maintainer: Axel Beckert



Section: misc

Install screen

  • Debian apt-get install screen Click to copy
  • Ubuntu apt-get install screen Click to copy
  • Alpine OS apk add screen Click to copy
  • Arch Linux pacman -S screen Click to copy
  • Kali Linux apt-get install screen Click to copy
  • CentOS yum install screen Click to copy
  • Fedora dnf install screen Click to copy
  • Raspbian apt-get install screen Click to copy
  • macOS brew install screen Click to copy

Hold a session open on a remote server. Manage multiple windows with a single SSH connection.

How to use screen?

Below are few example commands for screen that you can use in the terminal.

Start a new screen session:
screenClick to copy
Start a new named screen session:
screen -S session_nameClick to copy
Start a new daemon and log the output to screenlog.x:
screen -dmLS session_name commandClick to copy
Show open screen sessions:
screen -lsClick to copy
Reattach to an open screen:
screen -r session_nameClick to copy
Detach from inside a screen:
Ctrl + A, DClick to copy
Kill a detached screen:
screen -X -S session_name quitClick to copy
To install the latest version of screen in your favorite operating system just copy the screen installation command from above and paste it into terminal. It will download and install the latest version of screen 2026 package in your OS.