{"id":379,"date":"2007-01-23T00:45:30","date_gmt":"2007-01-22T15:45:30","guid":{"rendered":"http:\/\/ecpplus.net\/weblog\/20070123004530"},"modified":"2020-05-24T23:23:07","modified_gmt":"2020-05-24T14:23:07","slug":"screen%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/screen%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f\/","title":{"rendered":"Screen\u3092\u4f7f\u3063\u3066\u307f\u305f"},"content":{"rendered":"<p>\u3000Linux \u3067\u8907\u6570\u306e\u4eee\u60f3\u7aef\u672b\u3092\u7ba1\u7406\u3067\u304d\u308b screen \u3092\u4f7f\u3063\u3066\u307f\u305f\u3002<a href=\"http:\/\/www.dekaino.net\/screen\/\">Let&#8217;s user SCREEN!<\/a> \u3068\u3044\u3046\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u89e6\u3063\u3066\u307f\u305f\u3002<\/p>\n<h4>\u8a2d\u5b9a<\/h4>\n<p>\u3000\u4ed6\u30a2\u30d7\u30ea\u3068\u306e\u95a2\u9023\u3067\u3001\u30a8\u30b9\u30b1\u30fc\u30d7\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u304cA\u306b\u306a\u3063\u3066\u308b\u3068\u4e0d\u4fbf\u306a\u306e\u3067Z\u306b\u3057\u305f\u307b\u3046\u304c\u826f\u3044\u3001\u3068\u66f8\u3044\u3066\u3042\u3063\u305f\u306e\u3067\u3001\u3044\u308f\u308c\u305f\u901a\u308a\u306b\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3002 .screenrc \u3092\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3002\u307c\u304f\u306e\u74b0\u5883\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4f5c\u6210\u3057\u305f\u30021\u884c\u76ee\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u6587\u5b57\u30b3\u30fc\u30c9\u3092UTF8\u306b\u30012\u884c\u76ee\u306f\u30a8\u30b9\u30b1\u30fc\u30d7\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092Z\u306b\u30013\u884c\u76ee\u306f\u958b\u3044\u3066\u3044\u308b\u4eee\u60f3\u7aef\u672b\u4e00\u89a7\u3092\u5e38\u306b\u753b\u9762\u6700\u4e0b\u90e8\u306b\u8868\u793a\u3059\u308b\u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3002\u591a\u5206\u3001\u4f7f\u3063\u3066\u3044\u304f\u3046\u3061\u306b\u5897\u3048\u308b\u306e\u3060\u308d\u3046\u3051\u3069\u3001\u521d\u671f\u306f\u3053\u308c\u3067\u4f7f\u3063\u3066\u307f\u305f\u3002<\/p>\n<pre>defencoding utf8\ndefutf8 on\nescape ^z^z\nhardstatus alwayslastline \"%w\"\ndefscrollback 5000\nstartup_message off\nslowpaste off<\/pre>\n<h4>\u8d77\u52d5<\/h4>\n<pre>$ screen<\/pre>\n<p>\u3068\u3057\u3066\u8d77\u52d5\u3002\u4eee\u60f3\u7aef\u672b\u7ba1\u7406\u306a\u306e\u3067\u3001\u4e00\u898b\u306a\u3093\u3082\u8d77\u3053\u3063\u3066\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u308b\u3002\u65b0\u3057\u3044\u4eee\u60f3\u7aef\u672b\u3092\u4f5c\u308b\u306b\u306f\u3001<code>^z ^c<\/code> \u3068\u3057\u3066\u4f5c\u6210\u3002<code>^z ^w<\/code> \u3068\u3059\u308b\u3068\u3001\u4eca screen \u3067\u4f55\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u3092\u898b\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3002\u6b21\u306e\u4eee\u60f3\u7aef\u672b\u306b\u79fb\u308b\u306b\u306f\u3001 <code>^z [space]<\/code> \u3068\u3059\u308c\u3070\u826f\u3044\u3002\u524d\u306e\u4eee\u60f3\u7aef\u672b\u306b\u623b\u308b\u306b\u306f\u3001<code>^z ^h<\/code> \u307e\u305f\u306f <code>^z p<\/code> \u307e\u305f\u306f <code>^z [del]<\/code> \u3068\u3059\u308c\u3070\u826f\u3044\u3002\u307e\u305f\u3001 <code>^z ^w<\/code> \u3067\u4e00\u89a7\u3092\u898b\u308b\u3068\u756a\u53f7\u304c\u51fa\u308b\u306e\u3060\u304c\u3001<code>^z {\u756a\u53f7}<\/code> \u3068\u3059\u308c\u3070\u3001\u305d\u306e\u753b\u9762\u306b\u77ac\u6642\u306b\u884c\u3051\u308b\u3002<\/p>\n<h4>\u30d0\u30c3\u30af\u30b9\u30af\u30ed\u30fc\u30eb\u3084\u30b3\u30d4\u30da<\/h4>\n<p>\u3000\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3084\u30d0\u30c3\u30af\u30b9\u30af\u30ed\u30fc\u30eb\u3082\u53ef\u80fd\u3002<code>^z [<\/code> \u3068\u3059\u308b\u3068\u3001\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9\u306b\u306a\u308b\u3002vi \u3068\u540c\u3058\u64cd\u4f5c\u3067\u753b\u9762\u3092\u79fb\u52d5\u51fa\u6765\u308b\u3002\u30b3\u30d4\u30fc\u3057\u305f\u3044\u90e8\u5206\u306e\u59cb\u70b9\u306b\u884c\u304d space \u3092\u62bc\u3057\u3066\u3001\u7d42\u70b9\u3067 space \u3092\u62bc\u3059\u3068\u3001\u305d\u306e\u90e8\u5206\u304c\u30b3\u30d4\u30fc\u3055\u308c\u308b\u3002\u30da\u30fc\u30b9\u30c8\u3057\u305f\u3044\u90e8\u5206\u3067\u3001 <code>^z ]<\/code> \u3068\u3059\u308c\u3070\u306f\u308a\u3064\u3051\u3089\u308c\u308b\u3002<\/p>\n<h4>\u30c7\u30bf\u30c3\u30c1\u30fb\u30a2\u30bf\u30c3\u30c1<\/h4>\n<p>\u3000\u73fe\u5728\u306e screen \u304b\u3089\u5207\u308a\u96e2\u3057\u305f\u308a\u3001\u5207\u308a\u96e2\u3057\u305f screen \u304b\u3089\u73fe\u5728\u306e screen \u306b\u304f\u3063\u3064\u3051\u308b\u6a5f\u80fd\u3002\u30c7\u30bf\u30c3\u30c1\u306f\u3001<code>^z ^d<\/code> \u3068\u3059\u308c\u3070\u304ak\u3002\u73fe\u5728\u306e screen \u306e\u72b6\u614b\u306f\u3001 <code>screen -ls<\/code> \u3067\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u3060\u3002\u304f\u3063\u3064\u3051\u308b\u306b\u306f\u3001<code>screen -r {PID}<\/code> \u3067\u3001\u30b7\u30f3\u30b0\u30eb\u306e\u30a2\u30bf\u30c3\u30c1\u3002 <code>screen -x {PID}<\/code> \u3067\u30de\u30eb\u30c1\u306e\u30a2\u30bf\u30c3\u30c1\u3002\u307e\u3060\u3042\u3093\u307e\u4f7f\u3063\u3066\u306a\u304f\u3066\u3088\u304f\u308f\u304b\u3063\u3066\u306a\u3044\u3051\u3069\u3001\u8907\u6570\u306e\u7aef\u672b\u7acb\u3061\u4e0a\u3052\u3066\u30de\u30eb\u30c1\u3067\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u3068\u3001\u7247\u5074\u3067\u64cd\u4f5c\u3057\u3066\u308b\u306e\u304c\u3082\u3046\u7247\u5074\u3067\u3082\u898b\u3048\u308b\u3002\u5bb6\u3068\u7814\u7a76\u5ba4\u304b\u3089\u3001\u540c\u3058\u30b5\u30fc\u30d0\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u6642\u306f\u30de\u30eb\u30c1\u3067\u30a2\u30bf\u30c3\u30c1\u3057\u3068\u3051\u3070\u826f\u3044\u306e\u304b\u306a\u3002\u8abf\u67fb\u304c\u5fc5\u8981(\u00b4\uff65\u03c9\uff65`)<\/p>\n<p>\u3000\u3061\u3087\u3053\u3061\u3087\u3053\u3044\u3058\u3063\u3066\u307f\u305f\u611f\u3058\u3001\u3068\u308a\u3042\u3048\u305a screen \u3057\u3068\u3044\u3066\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u305f\u308a\u4ed6\u306e\u7aef\u672b\u306b\u4efb\u305b\u305f\u3044\u3068\u304d\u306f <code>^z ^d<\/code> \u3068\u3059\u308b\u3002\u4ed6\u306e\u3068\u3053\u304b\u3089\u7d9a\u3051\u305f\u3044\u3068\u304d\u306f\u3001<code>screen -r<\/code> \u3068\u3059\u308c\u3070\u5927\u4e08\u592b\u3002\u4e8c\u3064\u4ee5\u4e0a screen \u304c\u3042\u3063\u305f\u3089\u3001PID \u304c\u5fc5\u8981\u306b\u306a\u308b\u307f\u305f\u3044\u3002\u30c7\u30bf\u30c3\u30c1\u3057\u306a\u3044\u3067\u7aef\u672b\u9589\u3058\u305f\u308a\u3001\u56de\u7dda\u5207\u308c\u305f\u5834\u5408\u306f\u52dd\u624b\u306b\u30c7\u30bf\u30c3\u30c1\u3055\u308c\u308b\u306e\u3067\u3001\u3082\u3063\u304b\u3044<code>screen -r<\/code> \u3068\u3059\u308c\u3070\u7d9a\u3051\u3089\u308c\u308b\u3002\u30c7\u30bf\u30c3\u30c1\u3057\u3066\u306a\u3044 screen \u306b\u3064\u306a\u3050\u306b\u306f\u3001<code>screen -d -r<\/code> \u3068\u3059\u308c\u3070\u3001\u5143\u306escreen\u3092\u5f37\u5236\u7684\u306b\u7d42\u4e86\u3055\u305b\u3066\u3053\u3063\u3061\u304c\u64cd\u4f5c\u3092\u596a\u3046\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u3060\u3002\u305d\u3093\u306a\u3053\u3068\u3057\u306a\u304f\u3066\u3082\u3001 <code>screen -x<\/code> \u3068\u3057\u3066\u30de\u30eb\u30c1\u3067\u30a2\u30bf\u30c3\u30c1\u3059\u308c\u3070\u3001\u540c\u6642\u306b\u4f7f\u3046\u3053\u3068\u3082\u51fa\u6765\u308b\u3002\u81ea\u5206\u4e00\u4eba\u3067\u4f7f\u3046\u306e\u306a\u3089\u3001\u30de\u30eb\u30c1\u30a2\u30bf\u30c3\u30c1\u3060\u3051\u3057\u3066\u308c\u3070\u3044\u3044\u306e\u304b\u3001\u4f55\u304b\u5f0a\u5bb3\u304c\u3042\u308b\u306e\u304b\u2026\u306f\u3001\u4f7f\u3063\u3066\u307f\u3066\u8abf\u3079\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u8907\u6570\u4eba\u3067\u540c\u3058\u7aef\u672b\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066 vi \u3067\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u3092\u3044\u3058\u308d\u3046\u3082\u306e\u306a\u3089\u3001\u697d\u3057\u3044\u81ea\u4f53\u306b\u306a\u308a\u305d\u3046\u306a\u3053\u3068\u3060\u3051\u306f\u5206\u304b\u308a\u307e\u3059\uff08\u00b4\u2200\uff40\uff09<\/p>\n<h4>\u30a6\u30a3\u30f3\u30c9\u30a6\u5206\u5272<\/h4>\n<p>\u3000<code>^w S<\/code> \u3067\u73fe\u5728\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4e0a\u4e0b\u4e8c\u3064\u306b\u5206\u5272\u3057\u307e\u3059\u3002<code>^z [tab]<\/code> \u3067\u3001\u5206\u5272\u3055\u308c\u305f\u4e0b\u306e\u9818\u57df\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002\u5206\u5272\u3057\u305f\u3060\u3051\u3060\u3068\u3001\u305d\u3053\u306b\u306f\u4f55\u3082\u306a\u304f\u3066\u64cd\u4f5c\u3067\u304d\u306a\u3044\u306e\u3067\u3001<code>^z ^c<\/code> \u3068\u3057\u3066\u3001\u65b0\u3057\u3044\u4eee\u60f3\u7aef\u672b\u3092\u7acb\u3061\u4e0a\u3052\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u5206\u5272\u3057\u305f\u9818\u57df\u304c\u4e0d\u8981\u306b\u306a\u3063\u305f\u3089\u3001 <code>^z X<\/code> \u3068\u3057\u3066\u73fe\u5728\u3044\u308b\u7a93\u3092\u9589\u3058\u307e\u3059\u3002\u73fe\u5728\u3044\u308b\u9818\u57df\u4ee5\u5916\u3092\u9589\u3058\u308b\u5834\u5408\u306f\u3001<code>^z Q<\/code> \u3068\u3059\u308c\u3070\u9589\u3058\u3089\u308c\u308b\u3088\u3046\u3060\u3002\u3053\u308c\u306f\u4fbf\u5229\uff01<\/p>\n<h4>putty\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3089\u6587\u5b57\u5316\u3051<\/h4>\n<p>\u3000putty\uff08\u3054\u3063\u305f\u716e\u7248\uff09\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3089\u6587\u5b57\u5316\u3051\u3057\u3066\u3057\u307e\u3063\u305f\u3002\u305d\u3093\u306a\u3068\u304d\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b -U \u3092\u3064\u3051\u3066\u8d77\u52d5\u3059\u308b\u3068\u5f37\u5236\u7684\u306bUTF-8\u306b\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3001\u6587\u5b57\u5316\u3051\u3057\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n<pre>$ screen -U<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3000Linux \u3067\u8907\u6570\u306e\u4eee\u60f3\u7aef\u672b\u3092\u7ba1\u7406\u3067\u304d\u308b screen \u3092\u4f7f\u3063\u3066\u307f\u305f\u3002Let&#8217;s user SCREEN! \u3068\u3044\u3046\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u89e6\u3063\u3066\u307f\u305f\u3002 \u8a2d\u5b9a \u3000\u4ed6\u30a2\u30d7\u30ea\u3068\u306e\u95a2\u9023\u3067\u3001\u30a8\u30b9\u30b1\u30fc\u30d7\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u304cA\u306b\u306a\u3063\u3066\u308b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[7],"class_list":["post-379","post","type-post","status-publish","format-standard","hentry","category-development","tag-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=379"}],"version-history":[{"count":1,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":2269,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/379\/revisions\/2269"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}