linux in screen usage

screen to achieve the effect of minimizing the run of a similar windows, you can run in the background to the foreground and then later want to use when. In fact, always wanted to learn how to use, but there has been no opportunity.

In fact, on several commonly used commands. (Note that the parameters are different capitalization)

screen -S yourname -> Create a new call yourname of the session 
Screen - LS -> lists all current the session 
Screen -r yourname -> Back yourname that the session 
Screen -d yourname -> Remote detach one of the session 
Screen -d -r yourname -> end the current session and return to the session yourname

In the screen using the shortcut key ctrl + a + d, exit the current screen and runs in the background, using the ls command can be seen in a detached state

Enter exit at the screen, the exit and delete the current screen

We discovered in the course of a few points.

1, can use the screen of the same name, but are assigned different pid, ls can display specific session-id. Displayed when the format pid.name

2, the display has been Attached but it does not fail to connect the screen using the foreground, you can use screen -D -r <session-id> command. Equivalent to a user before kick off.

 

Reference article:

https://man.linuxde.net/screen

https://blog.csdn.net/gdali/article/details/72799581

Guess you like

Origin www.cnblogs.com/roadwide/p/12612152.html