Linux Virtual Terminal Command Screen usage details after using ssh or telnet to log on to the remote host, execute some time-consuming commands. if ssh or telnet is interrupted at this time, the program or command being executed on the remote host will also be terminated. For example, after you log on remotely, you need to execute a consumption... linux Virtual Terminal Command Screen usage details after using ssh or telnet to log on to the remote host, execute some time-consuming commands. if ssh or telnet is interrupted at this time, the program or command being executed on the remote host will also be terminated. For example, after you log on remotely, you need to execute a time-consuming command such as svn checkout. now you are about to get off work again. what should you do if you close your computer and leave? Screen can solve this problem well. Screen is also called a virtual terminal. it can achieve the effects of multiple virtual terminals on one physical terminal. General usage: 1. create a screen direct screen or screen-s xxx (XXX is the name you specified for this screen) 2. create a new virtual terminal in screen (now you have two virtual terminals in screen) ctrl + a + c (press ctrl + a first, then press c, the following command is the same) 3. switch the previous ctrl + a + p and the next ctrl + a + n List to ctrl + a + shift + "4. close a virtual terminal ctrl + a + k or exit5. pause the screen. (after the screen is suspended, you return to the shell that creates the screen) ctrl + a + d6, reconnect screenscreen-ls to list the currently suspended screen. for example, there is such a "8888.XXX (Detached) you can use screen-r 8888 or screen-r XXX to reconnect. The problem at the beginning of the article should be solved. after you connect to the remote host, do not rush to run your commands, but create a screen first, then, run your command in the screen Virtual Terminal. Before you disconnect the connection, pause the screen. The next time you connect, you only need to reconnect to your screen, you will find that your commands have been executed or are being executed, rather than being interrupted. Generally, the above usage is sufficient. if you need more, directly use screen -- help. By the way, the general release does not include this software. you need to install it on your own, and sudo apt-get install screen will be taken directly under ubuntu.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.