Screen command in Linux

Screen is an open source, full screen windows manager used to run multiple terminal screens. Screen command offers the ability to detach a long running process from a session and then attach it back at a later time.

Command to install screen in CentOS:

~~~
yum install screen
~~~

Command to install screen in Debian/Ubuntu:

~~~
apt-get install screen
~~~

Command usage:

1. Starting a new session:

Type screen command in the command prompt.

Example:

~~~
screen -S testscreen
~~~

2. List the currently running screens.

~~~~
screen -ls
~~~~

3. Resuming the required screen:

~~~~
screen -r [screen name/ screen ID]
~~~~

4. Detaching a screen:

~~~~
ctrl+A+D
~~~~

5. Closing/Terminating a screen session.
~~~
ctrl+C+D
~~~

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: