How To Install, Create/Detach And Kill Screen Processes In Linux
Screen process is used to open another screen window within your current active shell. We use this command to run those processes which requires to be running in the back ground all the times. Just like you have developed a specific application and you always start it from command line and when you disconnect your current server shell the process dies as well. Or you are copying a large size data from one server to another and your start in the screen and then attach/detach screen after regular intervals to check the process.
How to Install Screen:
Yum works fine on almost all Linux distros, so the following command takes care of the screen installation:
yum instal screen
How to create a new screen processes: simple run the screen command, and you will see a new window flashing up in the terminal, start your process and get out of the screen.
How to Exit from Screen:
Exiting or detaching screen is also easy, when you in screen press CTRL+ X and you will be out, leaving the screen process running intact.
How To Enter/Attach Screen
: Check the process name for screen first:
ps –ef | grep screen
Now enter into screen by running screen –r Pid, like Pid of screen processes is 12, we will attach that screen as :
screen –r 12
Terminating/Killing Screens:
Grep Process id of the screen as described above and then run the kill command to kill the processes. Cheers!






