Gnu Screen

Useful cheat-sheet of Gnu Screen shortcuts for terminal manipulation and multiplexing. Note that capital letters on shortcuts should be types with the Shift key pressed-down.

CTRL+AAttention – Every command starts with this
CTRL+A,dDetach from the current session
CTRL+A, SSplit current region vertically
CTRL+A, |Split current region horizontally
CTRL+A, TABCycle through all regions on the current session
CTRL+A, :removeRemove currently selected region
CTRL+A, “Show a list of terminals to switch to
CTRL+A, nSwitch to the next terminal into the current region
CTRL+A, pSwitch to the previous terminal into the current region
CTRL+A, cCreate a new multiplexed terminal on the current region
CTRL+A, QQuit split screen mode
CTRL+A, ESCAPEEnter/Exit Copy mode, useful for scrolling on the buffer
CTRL+A, kKill the terminal on the currently selected region
CTRL+A, xLocks the current screen session
CTRL+A, CTRL+GSwitch between audible and visual bell for the current session

Gnu Screen arguments that should be used when dealing with the ‘screen‘ binary from the shell

screen -S <name>Creates a new session using the given name, and automatically attaches to it
screen -r [name]Reconnects to a given session, or the only session active if no name is provided
screen -lsDisplays a list of the existing sessions for the user

Share this post

Leave a Reply