Skip to content

Instantly share code, notes, and snippets.

@wael34218
Last active December 16, 2021 16:23
Show Gist options
  • Save wael34218/9ff7cc23f2042a84dbba33f5c09332de to your computer and use it in GitHub Desktop.
Save wael34218/9ff7cc23f2042a84dbba33f5c09332de to your computer and use it in GitHub Desktop.

Screen Command

Command Description
screen –S NAME Create new screen
screen -ls List all screens started on the machine
screen –r NAME Reattach a session (if it is detached)
screen –x NAME Reattach to a session even if it is attached by other terminal.
[ctrl + a] [d] Detach from the current screen. Executed from inside the screen
[ctrl + d] Terminate screen. Executed from inside the screen
screen -X -S NAME quit Terminate a screen while not attached to it

Additional commands:

Command Description
[ctrl + a] [c] Create a new window
[ctrl + a] [n] Go to the next window
[ctrl + a] ['] Select which window to use
[ctrl + a] ["] Prompt list of windows
[ctrl + a] [k] Kill current window
[ctrl + a] [esc] Scroll up the screen to check more history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment