码迷,mamicode.com
首页 > 其他好文 > 详细

screen会话建立

时间:2018-10-10 10:39:04      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:进入   -bash   help   ide   一个   video   关闭   install   http   

创建screen帮助会话

一.screen使用方法

??创建新screen会话

??screen –S [SESSION]

??加入screen会话

??screen –x [SESSION]

??退出并关闭screen会话

??exit

??剥离当前screen会话

??Ctrl+a,d

??显示所有已经打开的screen会话

??screen -ls

??恢复某screen会话

??screen -r [SESSION]

二.简单举例

??首先创建一个screen会话。

[root@centos6 ~]#screen -S help
[root@centos6 ~]#

??显示已创建screen会话。

[root@centos6 ~]#screen -ls
There is a screen on:
    2827.help   (Attached)
1 Socket in /var/run/screen/S-root.
[root@centos6 ~]#

??切换终端进入创建好的screen会话

root@centos6 ~]#screen -x help

[root@centos6 ~]#

??两个终端显示结果同步。

[root@centos6 ~]#ls
123              Documents    ensp;?install.log.syslog  Public
anaconda-ks.cfg  Downloads    Music               Templates
Desktop          install.log  Pictures            Videos
[root@centos6 ~]#pwd
/root
[root@centos6 ~]#^C
[root@centos6 ~]#

??如下图。

技术分享图片

??剥离当先会话Ctrl+a,d

技术分享图片

??退出关闭会话exit.

screen会话建立

标签:进入   -bash   help   ide   一个   video   关闭   install   http   

原文地址:http://blog.51cto.com/yy1109lll/2296513

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!