Linux Interesting commands screen

Source: Internet
Author: User

Screen similar to a container, you can put the current foreground running Application Shell window closed without affecting the operation, and after the nohup a bit similar, but I think it is more useful than nohup

Usage 1:
Screen

Then it pops up a new shell window, running everything in this window OK, no matter the front and back, and then close the shell, it's still running

Take a look

Screen-ls

Two tasks to run again, call one of them to try

Screen-r 17197

The task shell pops up right away.

Usage 2:
Screen + command
Kill screen.
Kill-9 PID

Then Screen-ls

Screen Advanced Applications

Session sharing

There is also a more fun session recovery that enables session sharing. Suppose you're logging in to a machine with a friend in a different location, and then you create a screen session, and your friend can command it on his terminal:

Screen-x

This command will attach your friend's terminal to your screen session, and your terminal will not be detach. So you can share the same conversation with friends, if you are in the same window now, it is equivalent to sitting in front of the same monitor, your actions will be synchronized to your friends, your friend's operation will be shown to you synchronously.

Linux Interesting commands 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.