Staying Connected

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.

Installing Screen

#apt-get install screen


#yum install screen

Using 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)



Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s