[Linux-basic] screen makes your work faster

Source: Internet
Author: User
[Linux-basic] screen makes your work faster-Linux Enterprise Application-Linux server application information. For more information, see the following. In my daily work, I need to use ssh to connect to the server. Sometimes, when I do a few things at the same time (such as uploading files via ftp or sftp while viewing system logs ), when using secureCRT, you must use the clone session to open several more windows.

In Linux, man screen has dozens of pages of documents, which can fully describe the importance and complexity of screen. Next we will briefly introduce several common functions of screen, which can improve our work efficiency.

I. Remove process and session restrictions

Background Environment: it takes a long time to remotely use ssh as the Oracle database imp/exp. The window cannot be hung and cannot be exited. Now you do not need to be disturbed.

First, ensure that the screen software package is installed in the system, and then proceed. The screen version on my system is as follows:

[Root @ asptest ~] # Rpm-qa | grep screen
Screen-4.0.2-5

Commencement:

1. Create a screen session first

# Screen-S upload

A blank screen named upload is enabled.

2. Run the following command:

Ftp to a machine and upload a large file

When the file is being transferred, press Ctrl + a, then press d to exit the screen environment.

3. log out.

4. Log in again and execute the following command to resume the upload session.

# Screen-r upload

You can see that the file transfer is still in progress

5. You can create multiple screen sessions and execute multiple interactive commands. Run the following command to view existing screen sessions:

# Screen-ls
There is a screen on:
11575. upload (Attached)
1 Socket in/tmp/screens/S-root.
Related Article

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.