1. Install screen
In most cases, screen is already installed on the system. If not, you can use the following command to install:
Implemented in the CentOS system: Yum install screen
Debian/ubuntu System Execution: Apt-get Install screen
2. Common commands
The description of screen is quite complicated, but I am dizzy anyway. But in fact, we only need to master the following five commands is enough for us to use:
Screen-s Test #创建一个名为test的会话
Screen-ls #列出所有会话
screen-d Test #卸载名为test的会话, but the tasks in the session will continue to execute.
Screen-r Test #恢复名为test的会话
Exit #退出当前窗口
3. Common shortcut keys
CTRL + A C: Create a window in the current screen session
CTRL + A D: the same effect as screen-d, unloading the current session
CTRL + A W: Displays a list of Windows in the current session, displayed in the title bar
CTRL + A N: Switch to the next window
CTRL + A P: Switch to the previous window
CTRL + A 0-9: Switch between No. 0 window and 9th window
Description: The shortcut key here consists of three keys, such as CTRL + A C, you can hold down the CTRL key, then press A and C in turn. You can also press CTRL + a once, then press CTRL + C. Both methods are feasible.
Hand remaining fragrance: http://www.linuxidc.com/Linux/2014-04/100040.htm
Linux screen Ultra-Simple tutorial