• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

GNU Screen

November 25, 2011 by Sharad Chhetri Leave a Comment

GNU Screen:

It is a terminal multiplexer.By using GNU Screen, we can run many number of applications,interactive command shells, text editors, etc. within a single terminal.

Inside  the terminal user can open many windows terminal and sub-terminal.

Installation:

It can be installed in many flavours of Unix System.(I checked in all linux distro,AIX,Sun Solaris – it works)

Benefits:

(1) We can reconnect to screen terminal after network disconnection.

 For eg.

In case ,while working suddenly if we face any Network Disconnection we are mostly out of the remote console terminal(ssh).At that time might be we are running any critical command ,due to network disconnection the process also get killed.But  if we are using the screen terminal, we can reconnect back to same screen terminal in same state as you left.And you can see the process is still running.

(2) We can do the terminal sharing.

 For eg.
If you are doing some important task and your colleague or friend also want to see what you are working on this terminal,they can also connect to screen terminal and can see what are you typing, + even he can also take part in activity and hits command in same screen terminal.
So many peoples can do troubleshooting/debugging the problem within a same terminal.

(3) We can do logging of our activity  tracks like what commands are hit,what was the output etc.

There are many more features.I have shared only those which are generally used  in screen.


Manual:
http://www.gnu.org/software/screen/manual/

Commands and How to use screen:

Step 1: Run screen command (type screen and press enter,it will open a new terminal inside ur current terminal ,by defualt when u hit enter u directly enter into screen terminal)

Step 2: Now you are inside screen.

For de-attach from screen press keyboard keys in flowing combination.

ctrl+a+d

Note:if you use exit command,you will come out of screen as well as the screen process will be killed.

Step 3: See the list of running screen process.

screen -ls

The output would be like this:

[root@server ~]# screen -ls

There are screens on:
21887.pts-1.server  (Detached)
21554.pts-1.server  (Detached)
2 Sockets in /tmp/uscreens/S-root

Note: Here I am using 2 screen terminal.

Step 4: Reattach to selected screen

get the list from screen -ls command

 for eg.

screen -r   21554.pts-1.server 

Now u will be inside ur selected screen terminal.  And perform the task. 

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Error installing rails
  2. Nagios HTTP WARNING: HTTP/1.1 403 Forbidden
  3. The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form
  4. How to download package using apt-get command in ubuntu
  5. How to convert float to integer number
  6. Protect from w00tw00t.at.blackhats.romanian.anti-sec
  7. postgres database backup script using database user password inside
  8. How to add/install Ubuntu fonts in CentOS/Red Hat Linux
  9. Set GRUB password after installation of CentOS/Red Hat
  10. shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Filed Under: Linux, Tips And Tricks Tagged With: GNU Screen

Reader Interactions

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to increase Password Expire date without resetting the password

New XAMPP security concept

safest method to remove softlink in linux

How to zip directory in linux explained with examples

AttributeError: ‘WSGIRequest’ object has no attribute ‘session’ Django python web framework

master admin password openerp 7.x

This kernel requires an x86-64 CPU but only detected an i686 CPU

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ·
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy