Sunday, September 9, 2012

"screen" command

- list all screens: CTRL A "
- create one screen: CTRL A c
- close one screen: CTRL D
- help: CTRL A ?
- escape: space
- leave the screen session: CTRL A d
- rename session: (C-a :) and then enter the command sessionname SESSIONNAME
-rename window: (C-a A)
-renumber window: (C-a :) and then "number XXX" (warning: not bigger than the existing max)

- re-attach a "Detached" screen session
    joe@devxml1:~$ screen -ls
    There is a screen on:
    9425.pts-8.devxml1 (09/09/2012 16:21:38) (Detached)
    1 Socket in /var/run/screen/S-lefl.

    joe@devxml1:~$ screen -r 9425.pts-8.devxml1
    [detached from 9425.pts-8.devxml1]
- re-attach an "Attached"
. - if the screen is attached: screen -D -r