...
After connecting to a machine from PuTTY, terminal, etc., type
Code Block language bash screen
- Run the desired program
Use the key sequence
Ctrl-a + Ctrl-dctrl ad to detach from the screen session, this will keep it running in the background and return to your main shell
- Note, if you do not detach the session, you can restore if the connection drops by reconnecting and running screen -r
To see a list of active screen sessions, type
Code Block language bash screen -ls
Reattach to the screen session by typing
Code Block language bash screen -r [your session id here]
...