Knowledgebase
In this section
LEMN Stack Install Node Version Manager (NVM) Setup Guide Product Node Version List How to Use Screen Sessions on Linux
Docs / Knowledgebase / How to Use Screen Sessions on Linux

How to Use Screen Sessions on Linux

1 min read
Updated 3h ago
0 views

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 commands.

Update the package repository

bash Copy
sudo apt-get update

Install Screen

bash Copy
sudo apt-get install screen

Usage

Although running the screen command will create a new screen session, this only creates 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

bash Copy
screen -S NAME

List all created screens

bash Copy
screen -ls

Reconnect to a screen

bash Copy
screen -r -d NAME

Leave a screen

Copy
CTRL + A + D

Terminate a screen

Copy
CTRL + D
Was this helpful?

Comments

No comments yet. Be the first!
On this page
Installation Usage