Using “screen”

Screen is a utility to keep command line sessions in your unix
environment alive regardless of disconnects, and it can hold several
sessions inside it.
To start it run:
# screen
Once inside, you can use
Ctrl a c – Creates a new screen session so that you can use more than one screen session at once. Ctrl a n
– Switches to the
n
ext screen session (if you use more than one). Ctrl a p – Switches to the
p
revious screen
session (if you use more than one). Ctrl a d – Detaches a screen session (without killing the processes in it –
they continue).
Once you issue “ctrl a d” you are outside of screen.
To get a list of the screen sessions you have do a:
# screen -ls
There is a screen on:
9998.pts-5.myserver (Detached)
1 Socket in /tmp/uscreens/S-rdircio.
so to reconnect to it you need to do:
# screen -r 9998.pts-5.myserver
Than you use the “ctrl a ” commands listed above to use the subsessions.

Leave a Reply

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