Skip to content

Instantly share code, notes, and snippets.

@gabrielctn
Last active March 30, 2021 14:54
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 gabrielctn/900b0feab696eda7fc14559ccad8ef98 to your computer and use it in GitHub Desktop.
Save gabrielctn/900b0feab696eda7fc14559ccad8ef98 to your computer and use it in GitHub Desktop.
Screen cheat sheet

Start screen program in terminal
screen

List all existing screens
screen -ls

Create a new window (with shell)
ctrl+a c

List all window
ctrl+a "

Switch to window 0 (by number)
ctrl+a 0

Rename the current window
ctrl+a A

Split current region horizontally into two regions
ctrl+a S

Split current region vertically into two regions
ctrl+a |

Switch the input focus to the next region
ctrl+a tab

Toggle between current and previous region
ctrl+a ctrl+a

Close all regions but the current one
ctrl+a Q

Close the current region
ctrl+a X

Detach a screen session
ctrl-a d

Re-attach screen session
screen -r
screen -r name

Give name to session
screen -S fancy_name

New tab in screen
ctrl-a c

Navigate through tabs
ctrl-a backspace
ctrl-a space

Set scroll mode in screen sessions
ctrl-a + ESC

Quit scroll mode
ESC

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