We often encounter this problem. We use ssh to log in to a remote Linux server and run some long-term tasks. However, the task fails midway due to network instability. How to prevent the command from being interfered by closing the terminal window locally/disconnecting the network after the command is submitted?
Screen is a free software developed by the GNU Project for command line terminal switching. Users can use this software to connect to multiple local or remote command line sessions at the same time and switch between them freely.
Screen can be regarded as the command line interface version of the window manager. It provides a unified interface and corresponding functions for managing multiple sessions.
method:
1. Check if there is a screen installation package on the YUM source
# yum list screen*
2. Install screen
# yum install screen
3. After installation, print the help information to get a preliminary understanding of the screen's functions
#screen -h
The above is the detailed content of Steps to install Screen on CentOS 6.5. For more information, please follow other related articles on the PHP Chinese website!