安装
yum -y install screen
创建一个新的窗口
screen -S lxh
断开会话
列出会话
root@samba ~$screen -ls
There is a screen on:
21764.lxh (Detached)
1 Socket in /var/run/screen/S-root.
重新连接会话
root@samba ~$screen -r 21764
也可通过会话名连接
root@samba ~$screen -r lxh
杀死screen进程
root@samba ~$screen -ls
There are screens on:
21850.lxh (Attached)
21764.lxh (Attached)
2 Sockets in /var/run/screen/S-root.
root@samba ~$kill 21850
root@samba ~$screen -ls
There is a screen on:
21764.lxh (Attached)
1 Socket in /var/run/screen/S-root.
本文出自 “也曾鲜衣怒马年少时” 博客,请务必保留此出处http://xoyabc.blog.51cto.com/7401264/1659236
原文地址:http://xoyabc.blog.51cto.com/7401264/1659236