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

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

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?

0mn reading

Linux / Debian SSH commands

0mn reading

SSH - Apt-get command: Installing and uninstalling packages


Ask the LWS team and its community a question