参考URL:

http://jingyan.baidu.com/article/295430f128d8ea0c7e005089.html

~~~~~~~~~~~~~~~~~~~~~~~~

其它的不提,主要用的几个命令:

A,screen -S screenname

B,在screen窗口键入Ctrl+a-d中断(先按ctrl+a,然后再接d,进行detach操作)

C,screen -ls

D,screen -r screenname 

~~~~~~~~~~~~~~~~

[jawidx@fedev n-5]$ screen -S screenname //指定窗口名称

[jawidx@fedev ~]$ 在screen窗口键入C-a d中断(C-a k会杀掉screen会话)

[jawidx@fedev n-5]$ screen -ls

There are screens on:

16234.pts-112.fedev     (Attached)

4031.pts-455.fedev      (Detached)

26764.pts-455.fedev     (Detached)

6331.pts-455.fedev      (Detached)

26679.pts-345.fedev     (Detached)

8987.screenname      (Attached)

6 Sockets in /tmp/uscreens/S-jawidx.

[jawidx@fedev n-5]$ screen -r screenname //可用8987代替会话名,对于Attached的会话,需要先screen -d之后才能screen -r。

[jawidx@fedev ~]$ //继续刚才的工作

~~~~~~~~~~~~`

05-11 15:12