Simple but very useful screen

Tram Ho

The topic screen.

I. What is Screen?

1.1. Some information about Screen

image.png Screen is a pretty cool tool. It is used in conjunction with SSH. If you work really hard with SSH then you should know Screen.

Screen allows creating multiple subconnects or sessions, or can be understood to create multiple windows at the same time to do many things with just one SSH session. Also the connection can work even if the ssh connection is dropped. Screen also helps you to work with multiple windows right in the same ssh session.

Screen is available on Ubuntu. Also can be installed on Linux.

1.2. Commands to work with Screen

Command to create a new socket screen
screen

Create a window in the new socket and the new socket if there is no socket or the socket has been dettach. If you are in a socket, only create one more window in that socket.
Ctrl a + c

Switch screens between windows
Ctrl a + a
Ctrl a + 0
Ctrl a + 1
Ctrl a + 2

Show windows in the current session
Ctrl a + w
Ctrl a + " (with uppercase or special characters you combine Shift with that character, for example, Shift a = A )

Rename current window
Ctrl a + A

Split current screen into 2 vertically
Ctrl a + |

Split the current screen into 2 horizontally
Ctrl a + S

Switch between screens
Ctrl a + tab

Close all windows on the current desktop
Ctrl a + Q

Command to shut down any socket
screen -XS 4323 quit

Command show connected sockets
screen -ls

One-socket temporary interrupt instruction
screen -d 4323
If you want to create another socket, you can use this command and then create a new socket

Or
Ctrl a + d
Detach current socket

Command to reconnect a Detached socket
screen -r 4323
image.png

II. Settings Screen

On Ubuntu already available, so in the installation instructions on Linux. Step 1: Update
sudo yum update && sudo yum upgrade

Step 2: Install dependencies
sudo yum install epel-release

Step 3: Install Screen
sudo yum install screen

Step 4: Check
screen --vesion

Thank you all for reading my post and when you’re done, please give me your feedback. The following article is better thanks to your feedback. If you find this post useful, give me an upvote. I thank you.

Share the news now

Source : Viblo