How to use Linux screen

Source: Internet
Author: User

  • Workaround for problems encountered in use

    When you first use screen, you will get an error, which is related to the user's permissions.

    [Email protected] ~]$ screen

    Cannot open your terminal '/DEV/PTS/4 '-please check.

    The workaround is to type:

    Script/dev/null

    Detailed Description: http://urchin.blog.51cto.com/4356076/1153322/

    Put a portal, screen the details of how to use: http://www.ibm.com/developerworks/cn/linux/l-cn-screen/

  • Creating Session Sessions

    Screen-s Jiqimao

    Screen will create a session with the name Jiqimao. Perform the tasks that you want to perform in this session, such as Beeline-f A.sql,terminal's window is off without affecting the execution of the task.

  • Leave temporarily, preserving tasks or programs in a screen session

    When you need to leave temporarily (the program in the session does not close, still running) you can use the shortcut key CTRL + A D (that is, hold down CTRL, then press A,d Mac is also the CTRL key)

  • Resume screen session

    screen-r Jiqimao

  • List all session lists

    screen-ls

    screen lists the list of currently existing sessions, such as

    42389. Jiqimao is the Jiqimao session created for the screen just now, has temporarily exited the Jiqimao session, so the status is detached, when the use of Screen-r Jiqimao state will become attached, 42389 is the process ID of this screen session, which can also be used when resuming a session: Screen-r 42389

  • Turn off session for screen

    Exit

    Execution: Exit will prompt: [screen is terminating], indicating that the screen session has been successfully exited.

How to use Linux screen

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.