=ts/2 term=0 exit=0
root + pts/3 2015-03-19 22:33 . 5830 (192.168.80.1)
root + pts/4 2015-03-19 22:42 00:11 5851 (192.168.80.1:S.0)---->注意此处
[root@rhel63single ~]# screen -ls
There is a screen on:
5850.lei2 (Attached)
1 Socket in /var/run/screen/S-root.
[root@rhel63single ~]# ps -ef | grep 5851---->注意此处
root 5851 5850 0 22:33 pts/4 00:00:00 /bin/bash
root 5974 5830 0 22:56 pts/3 00:00:00 grep 5851
[root@rhel63single ~]# ps -ef | grep 5850---->注意此处
root 5850 1 0 22:33 ? 00:00:00 SCREEN -dmS lei2 ---->注意此处
root 5851 5850 0 22:33 pts/4 00:00:00 /bin/bash ---->注意此处
root 5883 5810 0 22:42 pts/2 00:00:00 screen -r 5850
[root@rhel63single ~]#
八、检查当前的提示符是否处于screen的session中:
按ctrl,再按a,再按t
此时,在左下角会显示:“22:45:06 Mar 19 rhel63single 0.00 0.00 0.00” 字样
格式为:当前时间,日期,主机名,负载情况
九、杀掉screen中的其他session
[root@rhel63single ~]# kill -9 5850
[root@rhel63single ~]# screen -ls
There is a screen on:
5850.lei2 (Dead ???)
Remove dead screens with 'screen -wipe'.
1 Socket in /var/run/screen/S-root.
[root@rhel63single ~]# screen -wipe
There is a screen on:
5850.lei2 (Removed)
1 socket wiped out.
No Sockets found in /var/run/screen/S-root.
[root@rhel63single ~]# screen -ls
No Sockets found in /var/run/screen/S-root.
[root@rhel63single ~]#
然后,被杀掉的session 有提示:
[root@rhel63single ~]#
Suddenly the Dungeon collapses!! - You die...
[root@rhel63single ~]#