This is a very useful tool I only discovered today.
Screen is a full-screen window manager that allows you to manage multiple shell sessions from one terminal window or console, view multiple shell sessions at the same time, and even log into the same session from more than one location at a time.
In my case, I used Screen to create a new session for the purpose of starting an 11 gigabyte download – but was then able to shutdown my laptop and go home, without the download being cancelled. I was then able to resume this session later and confirm that the download had completed successfully.
- If not already installed, use your normal technique for installing, e.g.
yum install screen
- To create a new screen session, simply type
screenat the command prompt
- This opens another identical looking prompt. Now start whatever process you have in mind.
- To return to your original prompt (but with the new screen still running in the background) press
- If you wish to return to the screen session later, just type
- At this point (while in the screen session) if you want to kill the session, press
ywhen it asks if you really want to kill the session.