This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using screen to maintain sessions on a remote machine. (This also just works locally). | |
# ssh into your remote host e.g. ssh user@host | |
# sets up a screen session called mysession | |
screen -S mysession | |
# Exiting the terminal (e.g. shutting your laptop) will "detach" the screen session (i.e. run it in the background). | |
# To see what screen sessions are running: | |
screen -ls | |
# To reconnect | |
screen -R mysession # resumes a detached session or creates one if it doesn't exist |