(1) Common screen parameters
screen -S yourname # Create a new session called yourname
screen -ls # List all current sessions
screen -r yourname # Go back to the session of yourname
screen -d yourname # remotely detach a session
screen -d -r yourname # End the current session and return to the session of yourname
(2) Use ctrl in session
Ca? # Display all key binding information
Ca c # Create a new window to run the shell and switch to this window
Ca n # Next, switch to the next window
Ca p # Previous, switch to the previous window
Ca 0..9 # Switch to the 0..9th window
Ctrl+a [Space] # Sequentially switch from window 0 to window 9
Ca Ca # Switch between the two recently used windows
Ca x # Lock the current window, you need to use the user password to unlock
Ca d # detach, leave the current session temporarily, and switch the screen session to the background for execution
Ca z # Put the current session in the background for execution, and use the fg command of the shell to go back.
Ca w # Display a list of all windows
Ca t # time, displays the current time, and the load of the system
Ca k # kill window, forcibly close the current window
Ca [# Enter copy mode, in copy mode, you can roll back, search, and copy just like 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 units of words
b backward one word, move backward in units of words
Press Space for the first time as the start point of the marking area, and press it for the second time as the end point
Esc end copy mode
Ca] # paste, paste the content just selected in copy mode