Skip to content

Instantly share code, notes, and snippets.

@d3athkai
Created April 26, 2023 16:46
Show Gist options
  • Save d3athkai/1ba2f3c5687205b5f596e9be42c39647 to your computer and use it in GitHub Desktop.
Save d3athkai/1ba2f3c5687205b5f596e9be42c39647 to your computer and use it in GitHub Desktop.
Screen Usage

Screen

Screen or GNU Screen is a terminal multiplexer. In other words, it means that you can start a screen session and then open any number of windows (virtual terminals) inside that session. Processes running in Screen will continue to run when their window is not visible even if you get disconnected.

Usage

Start a Named Session

screen -S <session_name>

List all Sessions

screen -list
4397.<session_name> (04/27/2023 12:23:08 AM) (Attached)

Detach from Screen Session

Ctrl+a then type d

List all Sessions again

screen -list
4397.<session_name> (04/27/2023 12:23:08 AM) (Detached)

Re-attach Screen Session

screen -r 4397.<session_name>

Kill the Screen Session

Ctrl+a then type :quit

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