GNU screen commands(Cheat Sheet)

GNU Screen is a terminal multiplexer, a software application that can be used to multiplex several virtual consoles, allowing a user to access multiple separate login sessions inside a single terminal window, or detach and reattach sessions from a terminal. It is useful for dealing with multiple programs from a command line interface, and for separating programs from the session of the Unix shell that started the program, particularly so a remote process continues running even when the user is disconnected. more

-Wikipedia

  • Install screen
$ sudo apt-get install screen
Keys/CommandsDescription
screenEnables Screen
Ctrl+a and then cCreate new screen
Ctrl+a and then nGo to next screen
Ctrl+a and then pGo to previous screen
Ctrl+a and then Shift+sSplit screen horizontally
Ctrl+a and then Shift+\Split screen vertically
Ctrl+a and then TabTraverse between splited screens
Ctrl+a and then Shift+xUnsplit screens
Ctrl+a and then Esc (Hit Esc, once you are done) Scroll screen
Ctrl+a and then dDetach screens
screen -r PIDReattach screen
screen -lsList screens
screen -S [session] Attach screen
screen -XS [session] quitKills screen

Few more in my Github Gist

Written on January 8, 2018