Skip to content

Instantly share code, notes, and snippets.

@netsensei
Created May 7, 2025 12:43
Show Gist options
  • Save netsensei/f03b804cafcaf0ea2230eb302f22013c to your computer and use it in GitHub Desktop.
Save netsensei/f03b804cafcaf0ea2230eb302f22013c to your computer and use it in GitHub Desktop.
Screen

How to screen

Create a new screen session:

screen -S session_name

Detach from your screen session:

Ctrl+a d

Re-attach:

screen -r

If multiple screen sessions:

screen -ls
There are screens on:
    10835.pts-0.foo   (Detached)
    10366.pts-0.foo   (Detached)
2 Sockets in /run/screens/S-foo.
screen -r 10835

See: https://linuxize.com/post/how-to-use-linux-screen/

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