Mac Terminal Screen Command usage guide

Source: Internet
Author: User

(1) Create a session

Use the command "Screen-s runwork" to create a screen session, the command executes, you will get a new shell window, in order to facilitate the marking can be used shortcut key Ctrl-a A (that is, press the CTRL + a key, and then press Shift+a), This way the cursor on the window prompts the window to be renamed. After entering the name "Runworkwindow", the carriage return completes the renaming of the window. The renaming here is to avoid confusing different windows in the same session, and you can use the Ctrl-a W shortcut to view the current window name

(2) Run the job session detach and resume

Ctrl-a D: Detach the current session so that, even if the network is disconnected or the SSH client is shut down, the job will still run on the server;

Screen-ls: See what sessions are currently in and their respective States;

Screen-r SessionID: Restores an already detach session (SessionID is the number in front of each session in the SCREEN-LS command result), and after the session is restored, you can see the input results and output information of the session on the command line.

(3) Screen-x window name: Replace Window

(4) Ctrl-a D:kill session

Mac Terminal Screen Command usage guide

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.