Table of Contents
This tip is about the how to Use Linux’s screen With Command. So read this free guide, How to Use Linux’s screen With Command step by step. If you have query related to same article you may contact us.
How to Use Linux’s screen With Command – Guide
Screen or GNU Screen is a terminal multiplexer. In others words, you can start a screen session and open any number of windows (virtual terminals) within that session. Processes running on Screen continue to run if its window is not visible, even if you log out. Screen is a terminal program on Linux that allows us to use a virtual (VT100 terminal) as a full-screen window manager, multiplexing an open physical terminal between several processes, which are usually interactive shells. It allows us to access multiple terminal sessions in a single terminal or remote terminal session. It is most useful when you are addressing multiple Linux shell commands on the command line, separating the commands from the shell that initiated the commands.
The screen also allows a user to launch a command from a terminal, disconnect from that terminal, and then reconnect to the same terminal from another location while using a different terminal without having to restart the command. This simply gives the user better control of multiple, separate command windows. Screen also allows multiple remote computers to connect to the same screen session at the same time. This allows multiple users to connect to the same screen session, allowing a second user to keep up with another administrator working on a server.
How to Installation screen on Linux
If you’re running a recent version of Linux, like Ubuntu 18.04 or CentOS 7, you probably already have Screen installed. To verify that canvas is installed, check the version with the command:
Installing the screen on CentOS
To install Screen on Red Hat/CentOS, type the command:
Installing Screen on Debian or Ubuntu
To install screen on Debian/Ubuntu, type the following:
Commands for the home screen
To start Screen, type the following at a command line:
The tool will launch and provide a short license agreement. Press the spacebar or Enter to proceed to the screen shell. The system will drop to a command line that looks like a normal terminal window. The screen works using command keys. It’s usually Ctrl-a plus another key. To display a list of available commands, type the following:
When starting the Screen application, it is useful to name the session. This helps you to keep track of different instances. To name a session with the –S option:
To exit the Screen, use the following command:
Basic on-screen commands to manage Windows
When Screen is first launched, it creates a window inside the Screen session. New windows can be created and switched using command keys. To open a new canvas window, use the following keystroke:
The original window is labeled 0 bash unless you give it a different name. Each new Screen window receives a number, up to 9. Here is a list of useful commands for managing canvas windows:
Create a new window
– List all open windows
0 – Switch to window #0 (or any other numbered window)
– Rename the current window
– Split screen horizontally, with current window on top
– (pipe) Split screen vertically, with current window to the left
– Switch between split screen areas (often used in conjunction with
to run different windows side by side)
– Switch between current and previous windows
– Switch to the next window
– switch to the previous window
– Exit all other windows except the current one
– Lock current window
– Create a session execution log
– Monitor a window for output (screen will flash a notification when that window has activity)
– (underscore) Watch the window for no output (such as when a file finishes downloading or a compiler finishes)
Final note
I hope you like the guide How to Use Linux’s screen With Command. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.