Skip to content

Instantly share code, notes, and snippets.

@hxtree
Last active May 25, 2020 11:31
Show Gist options
  • Save hxtree/9d3b0da1cb51af94908cca375320cce4 to your computer and use it in GitHub Desktop.
Save hxtree/9d3b0da1cb51af94908cca375320cce4 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