Use screen to manage several detachable consoles

Procédure

What is screen?

Screen is a powerful tool that allows you to have several SSH "console windows". With screen, you can keep several consoles running with a single SSH connection.

Installing screen

To install screen, run the following command:

apt-get install screen

Using screen

To create a new :

screen

To detach from this screen without closing it :

Ctrl+A, then press the D key.

To reconnect to this screen later :

screen -x

If you have several screens running, screen -x will not work, and a list of available screens will be displayed. To connect to one of them :

screen -x

You can also name your screen when it is created:

screen -S 'Gitlab

So, when you want to connect to this screen :

screen -x 'Gitlab

If you lose your connection, the commands in the screen will still be executed. You can connect again with SSH and attach yourself to the screen to resume your activities.

Rate this article :

This article was useful to you ?

Article utileYes

Article non utileNo

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

2mn reading

How do I configure the firewall on a dedicated VPS server?

1mn reading

How can I connect as root on a dedicated VPS server with Putty?

34mn reading

Linux / Debian SSH commands

7mn reading

SSH - Apt-get command: Installing and uninstalling packages


Questions sur cet article

Ask the LWS team and its community a question

RGPD : Responsable LWS-Ligne Web Services. Finalité : modération et publication publique de votre question, notification éventuelle d'une réponse. Base légale : consentement (art. 6.1.a RGPD). Conservation des emails : 90 jours après notification, 12 mois maximum sans réponse. Vous pouvez exercer vos droits via notre nos CGV - section RGPD.