{"id":1687,"date":"2019-04-29T23:35:55","date_gmt":"2019-04-29T15:35:55","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1687"},"modified":"2019-05-01T18:19:00","modified_gmt":"2019-05-01T10:19:00","slug":"screen","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/screen","title":{"rendered":"screen\u547d\u4ee4 – \u591a\u91cd\u89c6\u7a97\u7ba1\u7406\u7a0b\u5e8f"},"content":{"rendered":"\n
screen\u547d\u4ee4\u4e3a\u591a\u91cd\u89c6\u7a97\u7ba1\u7406\u7a0b\u5e8f\u3002\u6b64\u5904\u6240\u8c13\u7684\u89c6\u7a97\uff0c\u662f\u6307\u4e00\u4e2a\u5168\u5c4f\u5e55\u7684\u6587\u5b57\u6a21\u5f0f\u753b\u9762\u3002\u901a\u5e38\u4e2d\u6709\u5728\u4f7f\u7528telnet\u767b\u5165\u4e3b\u673a\u6216\u662f\u4f7f\u7528\u8001\u5f0f\u7684\u7ec8\u7aef\u673a\u65f6\uff0c\u624d\u6709\u53ef\u80fd\u7528\u5230screen\u7a0b\u5e8f\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>screen [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u521b\u5efascreen\u7ec8\u7aef\uff1a<\/p>\n\n\n\n \u521b\u5efascreen\u7ec8\u7aef\u5e76\u6267\u884c\u4efb\u52a1\uff1a<\/p>\n\n\n\n \u91cd\u65b0\u8fde\u63a5id\u4e3a2276\u7684screen\u7ec8\u7aef\uff1a<\/p>\n\n\n\n \u663e\u793a\u5df2\u521b\u5efa\u7684screen\u7ec8\u7aef\uff1a<\/p>\n\n\n\n \u5c06linuxcool\u4f5c\u4e1a\u79bb\u7ebf\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" screen\u547d\u4ee4\u4e3a\u591a\u91cd\u89c6\u7a97\u7ba1\u7406\u7a0b\u5e8f\u3002\u6b64\u5904\u6240\u8c13\u7684\u89c6\u7a97\uff0c\u662f\u6307\u4e00\u4e2a\u5168\u5c4f\u5e55\u7684\u6587\u5b57\u6a21\u5f0f\u753b\u9762\u3002\u901a\u5e38\u4e2d\u6709\u5728\u4f7f\u7528telnet\u767b […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1687"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=1687"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1687\/revisions"}],"predecessor-version":[{"id":1841,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1687\/revisions\/1841"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-A<\/td> \u5c06\u6240\u6709\u7684\u89c6\u7a97\u90fd\u8c03\u6574\u4e3a\u76ee\u524d\u7ec8\u7aef\u673a\u7684\u5927\u5c0f<\/td><\/tr> -d<\u4f5c\u4e1a\u540d\u79f0><\/td> \u5c06\u6307\u5b9a\u7684screen\u4f5c\u4e1a\u79bb\u7ebf<\/td><\/tr> -m<\/td> \u5373\u4f7f\u76ee\u524d\u5df2\u5728\u4f5c\u4e1a\u4e2d\u7684screen\u4f5c\u4e1a\uff0c\u4ecd\u5f3a\u5236\u5efa\u7acb\u65b0\u7684screeN\u4f5c\u4e1a<\/td><\/tr> -r<\u4f5c\u4e1a\u540d\u79f0>
<\/td>\u6062\u590d\u79bb\u7ebf\u7684screen\u4f5c\u4e1a<\/td><\/tr> -R<\/td> \u5148\u8bd5\u56fe\u6062\u590d\u79bb\u7ebf\u7684\u4f5c\u4e1a\uff0c\u82e5\u627e\u4e0d\u5230\u79bb\u7ebf\u7684\u4f5c\u4e1a\uff0c\u5373\u5efa\u7acb\u65b0\u7684screen\u4f5c\u4e1a<\/td><\/tr> -s<shell><\/td> \u6307\u5b9a\u5efa\u7acb\u65b0\u89c6\u7a97\u65f6\uff0c\u6240\u8981\u6267\u884c\u7684shell<\/td><\/tr> -S<\u4f5c\u4e1a\u540d\u79f0><\/td> \u6307\u5b9ascreen\u4f5c\u4e1a\u7684\u540d\u79f0<\/td><\/tr> -v
<\/td>\u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr> -x<\/td> \u6062\u590d\u4e4b\u524d\u79bb\u7ebf\u7684screen\u4f5c\u4e1a<\/td><\/tr> -ls<\/td> \u663e\u793a\u76ee\u524d\u6240\u6709\u7684screen\u4f5c\u4e1a<\/td><\/tr> -list<\/td> \u663e\u793a\u76ee\u524d\u6240\u6709\u7684screen\u4f5c\u4e1a<\/td><\/tr> -wipe<\/td> \u68c0\u67e5\u76ee\u524d\u6240\u6709\u7684screen\u4f5c\u4e1a\uff0c\u5e76\u5220\u9664\u5df2\u7ecf\u65e0\u6cd5\u4f7f\u7528\u7684screen\u4f5c\u4e1a<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# screen
<\/pre>\n\n\n\n[root@linuxcool ~]# screen vi ~\/main.c<\/pre>\n\n\n\n
[root@linuxcool ~]# screen -r 2276<\/pre>\n\n\n\n
[root@linuxcool ~]# screen ls<\/pre>\n\n\n\n
[root@linuxcool ~]# screen -d linuxcool<\/pre>\n\n\n\n