Basic usage of screen command under Linux

screen is a full-screen window manager that multiplexes a physical terminal between multiple processes (usually interactive shells). That is, using multiple windows under linux

1. Create a new session
screen -s [name]
2. List all sessions
screen -ls
3. Restore to a session

Requires screen -ls to be visible, i.e. not killed

screen -r [id]

or

screen -r [name]
4. After entering the screen window, I want to exit temporarily (I want to connect this screen window later)
crtl+a+d
Five, exit the current screen window, end the current screen window, do not want to connect back
exit

or

ctrl+d
6. Kill the screen window in the dead state
screen  -wipe [id]

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324891281&siteId=291194637