Use the screen command of linux to manage multiple windows
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!