Skip to content

Instantly share code, notes, and snippets.

@nareshganesan
Last active November 5, 2018 06:44
Show Gist options
  • Save nareshganesan/c404a94b485564d7ffd889f051bc3098 to your computer and use it in GitHub Desktop.
Save nareshganesan/c404a94b485564d7ffd889f051bc3098 to your computer and use it in GitHub Desktop.
Linux screen shorcuts
# The file contains list of frequently used screen shortcuts
# https://tournasdimitrios1.wordpress.com/2010/11/04/linux-the-screen-command-a-must-for-ssh/
Ctrl - control key
# Create a new screen window (create)
Ctrl-a + c # Press 'control' key and 'a' and followed by 'c'
# or
screen -S namexx
# Detach from a screen (detach)
Ctrl-a + d # Press 'control' key and 'a' and followed by 'd'
# or
screen -d
# Reattach to existing screen (reattach)
screen -r # if multiple screens are running will show a list and we should be able to tab select the option
# or
screen -R namexx
# or
# If the “screen terminal ” is already attached on another root terminal , it must first be detached with the “-d”
# before it can be attached on this terminal
screen -d -R namexx
# Switching between multiple screen (next)
Ctrl-a + n # Press 'control' key and 'a' and followed by 'n'
# Killing a exiting screen (kill)
Ctrl-a + k # Press 'control' key and 'a' and followed by 'k'
# Logging screen output
Ctrl-a + H # Press 'control' key and 'a' and followed by 'H'
# List screens
screen -ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment