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

Use the screen command of linux to manage multiple windows

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

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the use of linux screen command multi-window management program, I hope you will learn a lot after reading this article, let's discuss it!

The screen command is a multi-attention window manager. The so-called window here refers to a full-screen text mode picture. It is usually possible to use screen programs when logging in to the host using telnet or using an old-fashioned terminal.

Syntax format: screen [parameters]

Common parameters:

-A resizes all windows to the current terminal size-d takes the specified screen job offline-m forces the creation of a new screeN job even though the screen job is already in the job-r

Restore offline screen jobs-R first attempts to restore offline jobs. If an offline job cannot be found, a new screen job is created.-s specifies the name of the screen job to be executed when the new window is created.

Show version information-x offline screen jobs before recovery-ls shows all current screen jobs-list shows all current screen jobs-wipe checks all current screen jobs and deletes screen jobs that are no longer available

Reference example

Create a screen terminal:

[root@linuxcool ~] # screen

Create a screen terminal and perform tasks:

[root@linuxcool] # screen vi ~ / main.c

Reconnect the screen terminal with id 2276:

[root@linuxcool] # screen-r 2276

Display the created screen terminal:

[root@linuxcool ~] # screen ls

Take the linuxcool job offline:

[root@linuxcool] # screen-d linuxcool has finished reading this article. I believe you have some understanding of the multi-window management program using linux's screen command. If you want to know more about it, welcome to follow the industry information channel. Thank you for reading!

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