Skip to content

Instantly share code, notes, and snippets.

@jeremychone
Created April 16, 2014 01:30
Show Gist options
  • Save jeremychone/10796160 to your computer and use it in GitHub Desktop.
Save jeremychone/10796160 to your computer and use it in GitHub Desktop.

Screen

Commands

# start a screen with a sessionname
screen -S sessionname
# list screens
screen -ls
# attach to a detached screen 
screen -r [sessionid]
# attach to an already attached screen
screen -x [sessionid]
# check in which screen you are
echo $STY

Shortcuts

Ctrl+A d    |    Detach from current screen
Ctrl+A K    |    Quit / kill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment