How to use screen
Description
When using telnet or SSH to log in to Linux remotely, if the connection is abnormally interrupted, the system will open a new session when reconnecting, and the original session cannot be restored. The screen command can solve this problem. The Screen tool is a terminal multiplexer. In essence, this means that you can use a single terminal window to run multi-terminal applications. Use screen to establish a tunnel in the background
screen command list
(1) Create a session
screen -S name
例如:创建TTK名字的会话 screen -S TTK
(2) Save the session Ctrl+A+D
(3) View the list of all sessions
screen -ls
(4) Kill the session [session ID comes from (3)]
kill -9 会话ID
(5) Clear invalid sessions
screen -wipe
(6) Re-enter the session [Session ID comes from (3)]
screen -r 会话ID