In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of how to use Linux's Screen, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this article on how to use Linux's Screen. Let's take a look at it.
Screen is a full-screen window manager that multiplexes a physical terminal between multiple processes. There is the concept of session in Screen, where users can create multiple screen windows in a session, each screen window as if it were a real telent/SSH connection window. Generally speaking, the screen command is used to create one or more "command line windows" in which commands can be executed, and these "windows" are independently parallel.
Syntax $> screen [- AmRvx-ls-wipe] [- d] [- h] [- r] [- s] [- S]-A resizes all windows to the size of the current terminal. -d takes the specified screen job offline. -h specifies the number of buffer rows for the window. -m forces the creation of a new screen job even if it is already in the job. -r resumes offline screen jobs. -R first attempts to resume offline jobs. If an offline job cannot be found, a new screen job is created. -s specifies the shell to be executed when a new window is created. -S specifies the name of the screen job. -v displays version information. -x resumes previously offline screen jobs. -ls or-- list displays all current screen jobs. -wipe checks all current screen jobs and deletes screen jobs that are no longer available. Common screen parameters screen-S yourname-> create a new sessionscreen-ls called yourname-> list all current sessionscreen-r yourname-> go back to yourname this sessionscreen-d yourname-> remote detach some sessionscreen-d-r yourname-> end the current session and go back to yourname session under Session Use ctrl+a (Cmura) Cmura?-> display all key binding information Cmura c-> create a new window running shell and switch to this window Cmura a n-> Next, switch to the next windowC-a p-> Previous Switch to the previous windowC-a 0.9-> switch to the 0.9th windowCtrl+a [Space]-> switch from window 0 to window 9C-a Cmura-> switch between the two recently used window to lock the current window, unlock the current session with the user password, temporarily leave the current session, and throw the current screen session (which may contain multiple windows) to the background for execution. And will return to the state before the screen, when in the screen session, the process (whether foreground / background) running in each window continues to execute, even the logout does not affect. Cmura z-> put the current session to be executed in the background, and you can go back with shell's fg command. Cmura w-> shows the list of all windows Cmura t-> time, shows the current time, and the loadC-a k-> kill window of the system, forcibly closes the current windowC-a [- > enter copy mode, and rolls back, searches, and copies under copy mode just like using vi, Cmurb Backward,PageUp Cafe f Forward,PageDown H (uppercase) High, move the cursor to the upper left corner L Low Move the cursor to the lower left corner 0 to the end of the line $w forward one word, move forward b backward one word by word, move backward by word Space first press as the starting point of the marked area, press the second press as the end Esc to end copy modeC-a]-> paste, paste the content just selected in copy mode with the common operation
Create a session (- m force):
Screen-dmS session_name# session_name session name
Close the session:
Screen-X-S [session # you want to kill] quit
View all sessions:
Screen-ls
Enter the session:
This is the end of screen-r session_name 's article on "how to use the Screen of Linux". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to use Linux's Screen". If you want to learn more, you are 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.