Linux Screen Application

Sometimes you have to use SSH to get some jobs done in Linux! So what if you need to run multiple applications under SSH? Well the first solution is to open multiple SSH connections. Screen can make your life easier by letting you to have multiple windows on a single SSH session! But it’s not the reason I use this app really! one of the problems that administrators face while working on Linux servers is when the connection hiccups! it ruins your whole work sometimes if the session gets disconnected because of any reason! So screen can save your ass here as well! Anyway, enough for story… lets get to work with this!

Screen can be installed from source, RPM and … anyway we are going to use YUM to install it!

To install screen on Red Hat Based Distro’s like CentOS or Fedora Just use :

# yum install screen –y

By the way if you are using Debian based Distro’s you can use apt-get install screen.

Now let say we want to use it! just type “screen”. You can name your screen as well if you use “screen –S 1”. this will name your screen session as 1.

Well since you’ve started your session you can use following table to manage your screen windows:

Ctrl+a c Create new window
Ctrl+a k Kill the current window / session
Ctrl+a w List all windows
Ctrl+a 0-9 Go to a window numbered 0 9, use Ctrl+a w to see number
Ctrl+a Ctrl+a Toggle / switch between the current and previous window
Ctrl+a S Split terminal horizontally into regions and press Ctrl+a c to create new window there
Ctrl+a :resize Resize region
Ctrl+a :fit Fit screen size to new terminal size. You can also hit Ctrl+a F for the the same task
Ctrl+a :remove Remove / delete region. You can also hit Ctrl+a X for the same taks
Ctrl+a tab Move to next region
Ctrl+a D (Shift-d)    Power detach and logout
Ctrl+a d Detach but keep shell window open
Ctrl-a Ctrl-\ Quit screen
Ctrl-a ? Display help screen i.e. display a list of commands

Incoming search terms:

  • linux screen application
  • what is linux screen application
  • hazaveh screen
  • screen
  • screen application linux
  • Source: www14012.aboutcollegeessay.com/high-school-white-wt

Join the Conversation

2 Comments

  1. very good article, i was always scared of losing my current session when hiccups happen when i’m connected to my server

Leave a comment

Leave a Reply