Skip to content

Instantly share code, notes, and snippets.

@samsammurphy
Created May 15, 2019 22:03
Show Gist options
  • Save samsammurphy/b145be267214c361c7775c1fc44ffa9c to your computer and use it in GitHub Desktop.
Save samsammurphy/b145be267214c361c7775c1fc44ffa9c to your computer and use it in GitHub Desktop.
screen-basic

PART 1 Running a big process in the cloud

1) ssh into server (or practice locally first)

2) start screen

$ screen

# press return to get back to terminal

3) run a command

$ echo 'running my big process here..'

4) detach from screen and let commands keep running

$ Ctrl+a d

5) disconnect from server

$ exit

PART 2 Reconnecting to the process

1) re-connect by ssh

2) re-attach to screen

$ screen -r

3) exit the screens

$ exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment