Archive for May, 2013

Fast notes on screen

Posted May 30, 2013 By grigoris

> list sessions:
screen -ls

> resume session:
screen -r

> reattach (if necessary detach first):
screen -d -r

> detach session:
screen -d

> detach session (while running – keyboard shortcut):
“ctrl+a”+”d”

> kill session (inside session):
“Ctrl+a”+”:quit”
or the more obvious … “exit”

> kill session (outside, list sessions first):
screen -S session_number -X quit
(-S session’s name, -X send commant to the running screen session)