如何杀死一个已经detached的screen会话?
生活随笔
收集整理的這篇文章主要介紹了
如何杀死一个已经detached的screen会话?
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
如果向殺死一個已經detached的screen會話,可以使用以下命令:
screen -X -S seesion-id quit
舉例如下:
[root@localhost ~]# screen -ls
There are screens on:
9975.pts-0.localhost (Detached)
4588.pts-3.localhost (Detached)
2 Sockets in /var/run/screen/S-root.
[root@localhost ~]# screen -X -S 4588 quit
[root@localhost ~]# screen -ls
There is a screen on:
9975.pts-0.localhost (Detached)
1 Socket in /var/run/screen/S-root.
可以看到,4588會話已經沒有了
附:linux screen 命令詳解 :http://www.cnblogs.com/mchina/archive/2013/01/30/2880680.html
總結
以上是生活随笔為你收集整理的如何杀死一个已经detached的screen会话?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 王者荣耀周瑜铭文、出装推荐及操作技巧
- 下一篇: 虚拟机安装Ubuntu的上网设置(有线网