The screen utility allows you to have multiple logins on just one terminal. Screen is useful for users who telnet into a machine or are connected via a dumb terminal, but want to use more than just one login.

Install the screen package if you need a screen manager that can support multiple logins on one terminal.

For Centos/RHEL
Yum install screen

For Debian/Ubuntu
Apt-get install screen

To simply open a screen session just type screen and it will create a screen and move you into that session. Its best to have a naming convention when you start screen. This can be done by:

Screen – mds rysnctodb

This command will create a screen session in the background.
You can see what what screen sessions you have by typing screen –ls
[root@localhost ~]# screen -ls
There are screens on:
6769.rsynctodb (Detached)
6753.test (Attached)
2 Sockets in /var/run/screen/S-root.
If you have only one screen session you can simply type
Screen –x
For multi-screen session
Screen-x 6769
If you want to detach from your screen and not close your session simply press
Ctrl a+d
If you want to close the session press
Ctrl d or type “exit”

Leave a Reply

Your email address will not be published. Required fields are marked *