Skip to content

Instantly share code, notes, and snippets.

@LanternD
Forked from fredrick/screen.md
Last active November 14, 2018 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LanternD/b0c4ea41a345c2a7db7789559880e698 to your computer and use it in GitHub Desktop.
Save LanternD/b0c4ea41a345c2a7db7789559880e698 to your computer and use it in GitHub Desktop.
GNU Screen Cheat Sheet

GNU Screen Cheat Sheet

Basics

  • Ctrl+a c -> Cre­ate new win­dow
  • Ctrl+a A -> Set win­dow name
  • Ctrl+a w -> Show all win­dow
  • Ctrl+a 1|2|3|… -> Switch to win­dow n
  • Ctrl+a " -> Choose win­dow
  • Ctrl+a Ctrl+a -> Switch between win­dow
  • Ctrl+a d -> Detach win­dow
  • Ctrl+a ? -> Help
  • Ctrl+a [ -> Start copy, move cur­sor to the copy loca­tion, press ENTER, select the chars, press ENTER to copy the selected char­ac­ters to the buffer
  • Ctrl a ] -> Paste from buffer

Starting screen

  • screen –DR -> List of detached screen
  • screen –r PID -> Attach detached screen ses­sion
  • screen –dmS MySes­sion -> Start a detached screen ses­sion
  • screen –r MySes­sion -> Attach screen ses­sion with name MySession

Advanced

  • Ctrl+a S -> Cre­ate split screen
  • Ctrl+a TAB -> Switch between split screens
  • Ctrl+a Q -> Kill all regions but the cur­rent one.
  • Ctrl+a X -> Remove active win­dow from split screen
  • Ctrl+a O -> Logout active win­dow (dis­able out­put)
  • Ctrl+a I -> Login active win­dow (enable output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment