目录:
1.screen mirroring
2.screen saver
3.screen recorder
4.screen time
5.screen resolution
6.screen shot
7.screenx影厅是什么
8.screen name
9.screen out
10.screen translate下载
1.screen mirroring
screen看家技能 – 后台运行如果你要执行长时间不能中断的备份如果你要长时间测试和传输任务后有需要快捷恢复会话以及你想共享终端会话窗口那screen绝对是你居家旅行的必备命令创建会话:使用 screen -S
2.screen saver
例如:[root@centos7 11:11:29 ~]#screen -ls No Sockets found in /var/run/screen/S-root. [root@centos]#screen -S image [root@centos]#screen -ls There is a screen on: 1321.image (Attached) 1 Socket in /var/run/screen/S-root.
3.screen recorder
这里创建了一个名为“image”的screen作业,使用screen -ls你可以看到该作业的详情“Attached”表示这个screen会话是活动的其中1321表示此screen会话的进程号,image表示screen会话名。
4.screen time
在我们使用ctrl+a,d剥离screen会话后,你可以使用以下方法再次接入screen会话:[root@centos]#screen -ls There is a screen on: 1321.image (Detached) 1 Socket in /var/run/screen/S-root. [root@centos]#screen -x 1321
5.screen resolution
或者:[root@centos]#screen -ls There is a screen on: 1321.image (Detached) 1 Socket in /var/run/screen/S-root. [root@centos]#screen -r image
6.screen shot
以上两种方法都可以重启进入会话,是不是很神奇关闭screen会话[root@centos]#rm -f /var/run/screen/S-root/1321.image [root@centos]#screen -ls No Sockets found in /var/run/screen/S-root.。
7.screenx影厅是什么
screen独门绝技 – 共享会话,协同作业不得不说,screen的这项功能真是叹为观止为啥这么说呢?你想想,当你正在等待你的小伙伴在远方修改一个配置文件说来不巧,他的妈妈叫他吃饭这可如何是好?说时迟那时快,你的小伙伴,大吼一声:screen -x 作业进程号
8.screen name
你成功的共享了小伙伴的屏幕,继续编辑,无缝衔接,实在快哉![root@centos]# screen -S test #创建一个作业socket作业进程 [root@centos]# screen -ls #查看作业进程 There is a screen on: 12345.test (Attached) 1 Socket in /var/run/screen/S-root. [root@centos]# screen -x 12345 #进入共享模式
9.screen out
[root@centos]# ctrl+a,* #查看多少终端正在接入共享模式: term-type size user interface window Perms ———- ——- ———- —————– ———- —– xterm 74×37 root@/dev/pts/1 0(root@cento) rwx xterm 74×37 root@/dev/pts/0 0(root@cento) rwx
10.screen translate下载
以上可以看到有pts/0和pts/1两个终端接入此screen作业此时还可以使用w命令看看系统登录情况:[root@centos7 13:01:16 ~]#w 13:02:56 up 2:58, 5 users, load average: 0.00, 0.01, 0.05USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/4 192.168.30.1 12:54 0.00s 0.05s 0.00s w root pts/5 192.168.30.1:S.0 12:55 8.00s 0.10s 0.10s /bin/bash。
screen的安装[root@localhost test]# screen -S test #screen未安装bash: screen: command not found[root@localhost test]# which screen #screen未安装
/usr/bin/which: no screen in (/usr/local/php/bin:/usr/local/php/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/nginx/sbin:/home/simon/bin)
[root@localhost test]# rpm -qa | grep -i screen #查找系统自带的不可用的screengnome-screensaver-2.28.3-28.el6.x86_64
[root@localhost test]# rpm -e gnome-screensaver-2.28.3-28.el6.x86_64 #删除[root@localhost test]# [root@localhost test]#
[root@localhost test]# [root@localhost test]# yum install screen #安装Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install ProcessInstalled: screen.x86_64 0:4.0.3-19.el6
Complete![root@localhost test]# screen -S test使用ctrl+a,?,发现更多惊喜。
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
8. 精力有限,不少源码未能详细测试(解密),不能分辨部分源码是病毒还是误报,所以没有进行任何修改,大家使用前请进行甄别
丞旭猿论坛
暂无评论内容