10 Top Screen shortcuts

Submitted by lwinmaungmaung on
Image by Edgar Oliver from Pixabay

Screen is a terminal management tool for Linux and widely used in system administrators. If you have only terminal in your hand, connected to your server with SSH and don't know how to split , it is the best tool ever.

The main pros are you can not only leave the session open if you are dropped out or kicked out by the remote server. You can continue your remote session by typing a simple command and continue your work.

You can split it to sections and you can read the disk I/O operations, CPU speeds and even Network traffic in the same monitor with one terminal. It will also let you see live data and prevent you from kicked out when your internet connectivity is laggy.

Screen Installation

You can install with the following commands:

Debian

apt install screen

CentOS

yum install screen

gentoo

emerge --ask app-misc/screen

 

Entering for the first time

At first, you must enter yours in the terminal with the command. You will see the welcome text. Then, here you go.

 

Create a new Working area

You can easily create a new working area by using Ctrl+A, then C. 

 

Pause current section

Pause current section with Ctrl+A, then D.

 

Resume

You can resume with screen -d -r.

 

Resuming selectively

You can resume selectively by typing with section ID.

For example, screen -r 123.pts1.localhost.

 

Split Horizontally

Split horizontally with Ctrl+A, then Shift+S.

 

Split Vertically

Split vertically with Ctrl+A, then Shift+| or |.

 

Switch across sections

Switch to the next sections with Ctrl+A, Tab, and to previous Sections with Ctrl+A, Shift + Tab.

 

Switch inside the same area

Switch to the next screens with Ctrl+A, N  and to the previous screens with Ctrl+A, P within the same area. You should create a new section before switching to and fro.

 

Remarks

In other os, you can easily find them in system repos, in Centos 6, you can only split your terminal in Horizontally, you cannot do it vertically.

Interesting more .. Visit our blog for daily updates

Category