Screen Command Usage Summary

Source: Internet
Author: User

Screen

Configuration file:

/etc/screenrc

/home/username/.screenrc


#screen [OPTION] pid| SessionName

[OPTION]

-A adjusts all windows to the current size of the terminal.


-C Cfgfile uses cfgile as the configuration file.


-D pid| SessionName The specified screen job offline.


-H num Specifies that the number of buffer rows in the window is NUM.


-M forces a new screen job to be established even if the screen job is currently in operation.


-R pid| SessionName restores the offline screen job.


-R first attempt to recover the offline job. If you cannot find an offline job, create a new screen job.


-s Specifies the shell to be executed when the new window is created.


-S sessionname specifies that the name of the screen session is sessionname.


-V Displays version information.


-X enters the offline screen session and synchronizes the content.


-ls or--list shows all of the current screen session.


-wipe checks all current screen sessions and deletes the screen session that is not already available.


Screen session operation:

All commands are started with CTRL + A. Abbreviated to C-A


C-a? Show all key binding information

C-a c Create a new window to run the shell and switch to that window

C-a n switch to the next window

C-A p switch to previous window

C-a 0~9 Switch to window No. 0 to 9th

c-a [Space] cycle Switch window

C-a c-a Switch between the two most recently used Windows

c-a x Lock window, unlock the password to enter the current account


C-a D temporarily leaves the current session, throws the current screen session to the background and returns to the state when it is not yet in screen, at which time all operations in the screen session will continue to execute.


C-a Z puts the current session in the background and can go back with the FG command.

C-a W Display list of all windows

C-a T shows the current time, and the operating time of the system.

C-a k closes the current window. The session will also be closed after all windows are closed.


c-a [into copy mode, you can roll back, search, and copy in copy mode as if using VI

C-b Backward,pageup

C-f Forward,pagedown

H (uppercase) high, move the cursor to the upper-left corner

L Low, move the cursor to the lower left corner

0 move to the beginning of the line

$ End of line

W forward one word, move forward in words

b Backward One word, move backward in words

Space is first pressed as the starting point for the marked area, and the second press is the end point

ESC ends Copy Mode

C-a] Paste the selected content in copy mode.


This article is from "Small Private blog" blog, please be sure to keep this source http://ggvylf.blog.51cto.com/784661/1615970

Screen Command Usage Summary

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.