There are many times when as a systems admin you will need to do remote work and for whatever reason the connectivity is lousy. Whether you are compiling a program, running a program or installing patches; if you lose connectivity, you lose your work and in some cases you might get locked out or ruin binaries that did not install/upgrade correctly.
Being able to lose connectivity and log back in to continue were you left off is paramount and “Screen” allows you to do just that.
#apt-get install screen
#yum install screen
#screen (launches screen)
Ctrl a c – Creates a new screen session so that you can use more than one screen session.
Ctrl a n – Switches to the next screen session (if you have more than one)
Ctrl a p – Switches to the previous screen session (if you have more than one)
Ctrl a d – Detaches a screen session (without killing the processes in it)
#screen -ls (gets you a list of your current screen sessions)
#screen -r 29362.pts-3.server ( will connect you to the screen session)