GNU Screen cheat-sheet

SCREEN

starting screen

     named

          screen -S name

     within sudo

          script /dev/null
          screen -S name

disconnecting

     ^a d

reconnecting

     screen -x foo
     screen -x user/foo

listing

     screen -ls

$HOME/.screenrc

     hardstatus alwayslastline "%w %= %H "

     defscrollback 10000

     multiuser on
     addacl user1
     addacl user2
     addacl userN

help
     ^a ?

WINDOW

new window

     ^a c
     ^a : screen

title window

     ^a A name
     ^a : title name

close window

     ^a k
     ^a : k
 
     using ^d at the shell prompt will close end the current shell and so close the window.

select window

     ^a number
     ^a : select number

select next window

     ^a backspace
     ^a : prev

read-only window

     ^a : chacl * -w number

read-write window

     ^a : chacl * +w number

REGION

new region (aka split) 

     ^a S
     ^a : split     

select next region

     ^a tab

resize regions (equally)

     ^a : resize =

close region

     ^a X
     ^a : remove

close all regions except the current region

     ^a Q
     ^a : only

SCROLL-BACK
 
view
 
    ^a esc
 
page back
 
    ^b
 
page forward
 
    ^f

finished
 
    esc esc
 
END
See http://aperiodic.net/screen/start for an online manual.

No comments: