Linux screen command and linuxscreen command
Simply put, all the commands typed in the screen are in the background, so you don't need to think about bg. ctrl + z runs the background service in bg. Next time, you can go directly to the screen job background interface to view the Command records we typed in the past,
Even if all your CRTP windows are closed, you can go in next time.
If you do not have the screen command, you need to install it.
Step 1 install
Yyum install screen
Then
Rpm-qa | grep screenscreen-4.0.3-4.el5
This is what I installed
Okay. In the process, enter y and N. Finally, we see Complete! Haha, the installation is successful. The following describes the usage of this command.
1. screen-S as: Create a job. This as is customized. you can name it as needed.
After you press enter, a window will be created. All operations in this window belong to background operations. Ctru + a + z only exits from the window, and the commands executed in the window will not be affected.
2. view the content in the screen-r as job window
3. screen-d: remove the specified screen job offline
4. Clear the dead session
If one of the sessions dies for some reason (for example, killing the session manually ),
In this case, screen-list will display the session as dead. Run the screen-wipe command to clear the session.