In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "Linux system screen command how to use", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Linux system screen command how to use" this article.
The screen command in Linux system is mainly used for multi-window management. Multiple windows are opened in the same account at the same time, so that one window can operate other commands while one window runs the program.
The syntax screen [- AmRvx-ls-wipe] [- d] [- h] [- r] [- s] [- S] parameter states that-An adjusts 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.
Case demonstration: how to install screen
Screen has been pre-installed on some popular distributions. You can use the following command to check if it has been installed on your server.
Screen-v Screen version 4.00.03 (FAU) if you don't already have screen in Linux, you can easily install it using the package manager provided by the system.
CentOS/RedHat/Fedora
Yum-y install screenUbuntu/Debian
Apt-get-y install screen you can start it by typing screen on the command line, and then a screen session that looks like a command line prompt will start.
It is a good practice for screen to start a screen session with a descriptive name so that you can easily remember the processes that are running in the session. To create a new session with the session name, run the following command:
Screen-S name replaces "name" with a name that is meaningful to your conversation.
Detach from a screen session
To detach from the current screen session, press Ctrl-An and d. All screen sessions will remain active and you can reconnect at any time later.
Reconnect to the screen session
If you are detached from a session, or if your connection is disconnected for some reason, you can reconnect with the following command:
Screen-r if you have multiple screen sessions, you can list them with the ls parameter.
Screen-ls There are screens on: 7880.session (Detached) 7934.session2 (Detached) 7907.session1 (Detached) 3 Sockets in / var/run/screen/S-root. In our example, we have three active screen sessions. So, if you want to restore the "session2" session, you can execute:
Screen-r 7934 or use the screen name.
Screen-r-S session2 aborts a screen session
There are several ways to abort a screen session. You can press Ctrl+d or use the exit command on the command line.
To see all the useful features of the screen command, you can check out screen's man manual.
Man screen NAME screen-screen manager with VT100/ANSI terminal emulation SYNOPSIS screen [- options] [cmd [args]] screen-r [[pid.] tty [.host]] screen-r sessionowner/ [[pid.] tty [.host]] these are all the contents of the article "how to use screen commands on Linux systems". 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.
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.