Skip to content

Instantly share code, notes, and snippets.

@danhodge
Last active August 14, 2024 20:22
Show Gist options
  • Save danhodge/15bbc2c33a0a5ee8f05c73710ea1d1bd to your computer and use it in GitHub Desktop.
Save danhodge/15bbc2c33a0a5ee8f05c73710ea1d1bd to your computer and use it in GitHub Desktop.
# Basic Usage
# 1. SSH into remote host
# 2. $ screen
# 3. run commands
# 4. C-a C-d (detach)
# Write stdout to a logfile
# screen -L
# Attach to the existing session
# screen -d -r
# Attach to an existing session by PID
# screen -d -r <pid>
# Show sessions
# screen -list
# Scroll up/down
# C-a ESC, then use arrows/pg up/pg down to navigate (ESC again to exit)
# Terminate session
# C-a :quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment