Skip to content

Instantly share code, notes, and snippets.

@pvbhanuteja
Forked from hxtree/README.md
Created May 25, 2020 11:31
Show Gist options
  • Save pvbhanuteja/0205b03f2f68bb0c1a099193232d02cc to your computer and use it in GitHub Desktop.
Save pvbhanuteja/0205b03f2f68bb0c1a099193232d02cc to your computer and use it in GitHub Desktop.
Linux Screen

Linux Screens

Linux screens are great for running background tasks and are especially helpful when running a long process on a remote server due to SSH timelimits.

Start a new screen

screen

(Run commands for tasks)

Detach from a screen

[CTL] + [A], [D]

List Screens

screen -ls

Reattach to screen (id)

screen -r 31620

Kill a screen while attached

[CTL] + [A], [D]

Kill a screen while not attached

screen -X -S 31620 kill

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