This article will show how to destroy a screen. In this context, the screen is actually an useful tool in an operating system. Especially if the system is basically has a Command Line Interface (CLI). For an example, in Linux that allow the user to use a virtual terminal. So, what is the definition of a screen ?. The definition exist in this link. As in the previous statement, according to the link, screen is a terminal program in Linux which allows us to use a virtual (VT100 terminal) as full-screen window manager which multiplexes an open physical terminal between multiple processes, which are typically, interactive shells. It allows us to access multiple terminal sessions within a single terminal or a remote terminal session. It is most useful when addressing multiple Linux shell commands on the command line, as well as separating commands from the shell that started the commands.
Also, according to that link, screen also allows a user to initiate a command from one terminal, disconnect from that terminal, and then reconnect from a different location to that same terminal, while using a different terminal without having to restart the command. This simply lets a user better control multiple and separate command windows.
Screen also lets multiple remote computers connect to the same screen session at once. This allows multiple users to connect to the same screen session allowing a second user to follow along with another administrator working on a server. In order to remove or to destroy a screen, just list the screen first. In order to list available screens, just type the command pattern :
The following is an example of the command usage :
[root@localhost ~]# screen -list There is a screen on: 22775.backup (Detached) 1 Socket in /var/run/screen/S-root. [root@localhost ~]#
In order to remove the screen exist in the above output, just type the following command pattern :
screen -S screen_name -X quit
For an example the following is the usage of the above pattern :
[root@localhost ~]# screen -S 22775 -X quit [root@localhost ~]# screen -list No Sockets found in /var/run/screen/S-root. [root@localhost ~]#