Skip to content

Instantly share code, notes, and snippets.

View shamayn's full-sized avatar

Sha-Mayn Teh shamayn

View GitHub Profile
@shamayn
shamayn / intro-screen
Last active August 29, 2015 14:22
Intro to Screen
# 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