Screen

October 19, 2008 by V-Teq · 2 Comments
Filed under: Linux Notes 

screen – screen manager with VT100/ANSI terminal emulation

Create new screen window

  $ screen # open screen manager with new window
  ^A c # create new window

Kill screen window

  ^A k // kill current window
  ^A :quit // kill all the session (also ^A ^\)

Detach screen session

  $ screen -d
  ^A d

Re-attach the screen session

  $ screen -list # shows current sessions
  $ screen -r # when only one avaible session is running
  $ screen -r  #  from list of current sessions
  $ screen -r / # multiuser session
  $ screen -d -r  # detach session first

Allow multiuser mode

  $ chmod u+s /usr/bin/screen # first time only
  $ chmod 755 /var/run/screen # first time only
  ^A: multiuser on
  ^A: acladd  StHAdPdbENeKq // the 2nd argument is crypted password (created by mkpasswd)

Managing screen windows

  ^A A // rename current window
  ^A " // list of windows
  ^A S // split current window horizontally
  ^A [0-9] // quick access window #No.[0-9]