Use multiple screens in Linux

Source: Internet
Author: User
Linux Terminal uses multiple screens-General Linux technology-Linux technology and application information. The following is a detailed description. Linux learning reference.

I think the best method is the screen command. If you are not familiar with the man manual, let me first talk about the usage of this command. This article describes how to use the screen command to implement multiple screens after logging on to a terminal.

As we all know, after logging on to the console of the system, there are multiple virtual terminals on the console, you can use Alt + F1... F6. However, after logging on to the system via ssh, how can we use multiple screens on one terminal to improve work efficiency. The screen command can meet our needs.

For details about how to use the tool, refer to the man manual page. here I will explain the most effective usage:

1. [root @ test ~] # Screen-S term1 name the current screen term1

2. how to create another screen for us to do other things?

Press Ctrl + a c. Press Ctrl and lowercase a at the same time, release the two keys, and then press lowercase c. At this time, a new screen appears.

We can use a new terminal to do other things.

3. how can I switch between two or more screens?

Press Ctrl + a n and Ctrl + a p to combine them to switch the window forward and backward respectively.

4. split the window

Press Ctrl + a S (S is capitalized)

At this time, the existing window is above, and the window ID and shell name are displayed on the horizontal bar in the middle.

However, the following window does not run a new shell. We can use the method described earlier to run a new shell.

First, press Ctrl + a Tab to move the cursor to the following window, and then press Ctrl + a c to create a new window.

5. if multiple windows have been created, how can I quickly switch to the specified window?

Press Ctrl + a' 1 to switch to window 1, and so on.

6. press Ctrl + a to change the name that is easy to remember for the current window.

There are many other related functions, so I will not talk about them much. I believe the above is the most commonly used function.

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.