Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use screen

2025-02-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "how to use screen", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use screen" this article.

Before the remote ssh down the program, it will take a long time, then disconnect the ssh connection, at first thought the program will automatically run in the background, the result of the next day open ssh connection, found that the program did not continue to run, did not generate the corresponding result file, only later know that after disconnecting ssh, the program automatically disconnected.

In order to realize that after disconnecting the ssh, the program continues to run, and the screen is needed to check on the Internet.

1. Screen-S name # create screen session, customize screen virtual terminal name 2. Vim a.txt type a few words or ping 127.0.0.1 # execute the command you want. Close ssh remote window disconnect 4. Screen-r name # log in to ssh, check the previous session can see or previous window either unsaved text or still automatic pingscreen-ls # View all screen sessions ctrl+an and then press d # to save the current screen session exit # exit screenscreen-X-S [session # you want to kill] quit # Kill all the content of the article "how to use screen" above screen Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report