Weblutions Documentation
Weblutions Main Site Contact Us Our Discord
Some pages are still pending proper formatting, if required refer to the legacy documentation website.
Knowledgebase IconKnowledgebase

Weblutions Documentation / Knowledgebase / How to Use Screen Sessions on Linux

Updated

How to Use Screen Sessions on Linux

By Josh M. 1 min 7

Screen is a console application that allows the use of multiple terminal sessions within one server. The program operates within a shell session and acts as a container and manager for other terminal sessions. This of it as having multiple command prompt windows running in the background on Windows.

Installation

Many Distributions of Linux come with screen already installed. However, to install it if needed run the below install commands

  1. Update the package repository

sudo apt-get update
  1. Install Screen

sudo apt-get install screen

Usage of Screen

Although running the screen command will create a new screen session, this only create the session with minimal data to identify the session later on in an easy way. The below commands show great ways to have screen names and other usage methods.

Create a screen with a name

screen -S NAME

List all Created Screens

screen -ls

Reconnect to a Screen

screen -r -d NAME

Leave a Screen

CTRL + A + D

Terminate a Screen

CTRL + D