Frequently used SCREEN reference commands

# open screen session

# list screen sessions
screen -ls 

# reattach to screen session
screen -r <name of screen session> 

# attach to a not detached session
screen -x <name of screen session> 

# detach from unattached session
screen -d 

Note: ^A = Ctrl-a (Press the "a" key while holding down Control key)

detach from screen session attached to
^A d 

# open another session
^A c 

list the screen windows
^A w 

# print screen and save a hardcopy
^A h 

# go to next window
^A n 

# go to previous window
^A p

# lock screen
^A x

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

screen terminal adjustments

  • Split terminal horizontally:
    Ctrl+a S
  • Split terminal vertically:
    Ctrl+a |
  • Resize region:
    Ctrl+a :resize
  • Fit screen to new terminal size:
    Ctrl+a F
  • Remove region:
    Ctrl+a X
  • Move to next region:
    Ctrl+a tab