{"id":3362,"date":"2018-05-26T17:31:03","date_gmt":"2018-05-26T08:31:03","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=3362"},"modified":"2023-05-27T21:25:59","modified_gmt":"2023-05-27T12:25:59","slug":"%e3%80%90linux%e3%80%91%e3%80%8c%e3%83%90%e3%83%83%e3%82%af%e3%82%b0%e3%83%a9%e3%82%a6%e3%83%b3%e3%83%89%e3%83%97%e3%83%ad%e3%82%bb%e3%82%b9%e3%80%8d%e3%81%a8%e3%80%81%e3%81%9d%e3%81%ae%e3%80%8c","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=3362","title":{"rendered":"\u3010Linux\u3011\u300c\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30d7\u30ed\u30bb\u30b9\u300d\u3068\u3001\u305d\u306e\u300c\u7d42\u4e86\u300d(kill\u30b3\u30de\u30f3\u30c9)\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30d7\u30ed\u30bb\u30b9\u3068\u306f\uff1f<\/h2>\n<p>\u901a\u5e38\u306els\u3084\u3001cd\u7b49\u306f\u305d\u306e\u5834\u9650\u308a\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u3059\u3050\u306b\u81ea\u52d5\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>Linux\u3067\u306f\u3001\u305a\u3063\u3068\u5e38\u99d0\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u3092<span style=\"color: #ff0000;\"><strong>\u300c\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30d7\u30ed\u30bb\u30b9\u300d<\/strong><\/span>\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<h2>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u52d5\u304b\u3059\u306b\u306f\uff1f<\/h2>\n<p>\u30b3\u30de\u30f3\u30c9\u306e\u6700\u5f8c\u306b\u3001<span style=\"color: #ff0000;\"><strong>\u300c&amp;\u300d\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3366\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9.png\" alt=\"\" width=\"461\" height=\"92\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9.png 461w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9-300x60.png 300w\" sizes=\"(max-width: 461px) 100vw, 461px\" \/><\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u300c5067\u300d\u3068\u3044\u3046\u306e\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u52d5\u3044\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u30d7\u30ed\u30bb\u30b9ID<\/strong><\/span>\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u300csleep\u300d\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066<\/h3>\n<p>\u3068\u3044\u3046\u306e\u306f\u3001\u64cd\u4f5c\u3092\u6307\u5b9a\u3057\u305f\u79d2\u6570\u5206\u505c\u6b62\u3055\u305b\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3001\u672c\u6765\u306f\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u505c\u6b62\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u666e\u901a\u306b\u64cd\u4f5c\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001ps\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u3001\u666e\u901a\u306b\u30d7\u30ed\u30bb\u30b9\u3068\u3057\u3066\u306f\u5b58\u5728\u3057\u3066\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3368\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/\u30d7\u30ed\u30bb\u30b9\u3068\u3057\u3066\u5b58\u5728.png\" alt=\"\" width=\"267\" height=\"147\" \/><\/p>\n<h2>\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30d7\u30ed\u30bb\u30b9\u3092\u505c\u6b62\u3055\u305b\u308b\u306b\u306f\uff1f<\/h2>\n<p>\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30d7\u30ed\u30bb\u30b9\u3092\u505c\u6b62\u3055\u305b\u308b\u306b\u306f<span style=\"color: #ff0000;\"><strong>\u300ckill\u30b3\u30de\u30f3\u30c9\u300d<\/strong><\/span>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">kill [\u30aa\u30d7\u30b7\u30e7\u30f3] \u30d7\u30ed\u30bb\u30b9ID<\/pre>\n<h3>\u5b9f\u884c\u4f8b<\/h3>\n<p>sleep\u30d7\u30ed\u30bb\u30b9\u304c\u6d88\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3369\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/kill\u30b3\u30de\u30f3\u30c9.png\" alt=\"\" width=\"313\" height=\"113\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/kill\u30b3\u30de\u30f3\u30c9.png 313w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/kill\u30b3\u30de\u30f3\u30c9-300x108.png 300w\" sizes=\"(max-width: 313px) 100vw, 313px\" \/><\/p>\n<h3>kill\u30b3\u30de\u30f3\u30c9\u3067\u6307\u5b9a\u3067\u304d\u308b\u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u30b7\u30b0\u30ca\u30eb\u300d<\/strong><\/span>\u3068\u3044\u3046\u4fe1\u53f7\u3092\u9001\u4fe1\u3057\u3066\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u6319\u52d5\u3092\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u30b7\u30b0\u30ca\u30eb\u540d<\/th>\n<th>\u6570\u5024<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>SIGHUP<\/td>\n<td>1<\/td>\n<td>\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3001\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3059\u308b\u3068\u30d7\u30ed\u30bb\u30b9\u306b\u3053\u306e\u4fe1\u53f7\u304c\u9001\u3089\u308c\u307e\u3059\u3002\u30d7\u30ed\u30bb\u30b9\u306f\u3053\u306e\u4fe1\u53f7\u3092\u53d7\u4fe1\u3059\u308b\u3068\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>ssh\u306e\u30ed\u30b0\u30a2\u30a6\u30c8\u3092\u884c\u3063\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u306a\u3069\u3067\u9001\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u518d\u8aad\u307f\u8fbc\u307f\u3092\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u3082\u4f7f\u308f\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>SIGINT<\/td>\n<td>2<\/td>\n<td>\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u306e\u5272\u308a\u8fbc\u307f\u30b7\u30b0\u30ca\u30eb<\/td>\n<\/tr>\n<tr>\n<td>SIGKILL<\/td>\n<td>9<\/td>\n<td>\u5f37\u5236\u7d42\u4e86\u3001<span style=\"color: #ff0000;\"><strong>\u305f\u307e\u306bSIGTERM\u3092\u53d7\u3051\u4ed8\u3051\u306a\u304f\u306a\u3063\u305f\u30d7\u30ed\u30bb\u30b9\u304c\u3042\u308b\u3002\u305d\u306e\u5834\u5408\u306fSIGTERM\u3067\u306f\u306a\u304fSIGKILL\u3092\u4f7f\u3044\u307e\u3059\u3002<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td>SIGTERM<\/td>\n<td>15<\/td>\n<td>\u6b63\u5e38\u7d42\u4e86\uff08<span style=\"color: #ff0000;\"><strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u672a\u6307\u5b9a\u306e\u5834\u5408\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024<\/strong><\/span>\uff09<\/td>\n<\/tr>\n<tr>\n<td>SIGCONT<\/td>\n<td>18<\/td>\n<td>\u4e00\u6642\u505c\u6b62\u3057\u3066\u3044\u308b\u30b8\u30e7\u30d6\u3078\u306e\u518d\u958b\u30b7\u30b0\u30ca\u30eb<\/td>\n<\/tr>\n<tr>\n<td>SIGSTOP<\/td>\n<td>19<\/td>\n<td>\u4e00\u6642\u505c\u6b62\u30b7\u30b0\u30ca\u30eb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ed6\u306b\u3082\u30b7\u30b0\u30ca\u30eb\u304c\u3042\u308a\u3001\u3069\u306e\u3088\u3046\u306a\u30b7\u30b0\u30ca\u30eb\u304c\u3042\u308b\u304b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">man 7 signal<\/pre>\n<h2>nohup<\/h2>\n<p>&amp;\u3092\u3064\u3051\u308b\u3060\u3051\u3060\u3068terminal\u7d42\u4e86\u5f8c\u306b\u81ea\u52d5\u7684\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3082\u7d42\u4e86\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002nohup\u3092\u30b3\u30de\u30f3\u30c9\u306e\u5148\u982d\u306b\u3064\u3051\u308b\u3068SIGHUP\u3092\u7121\u8996\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">nohup (\u30b3\u30de\u30f3\u30c9) &amp;<\/pre>\n<p>\u307e\u305f\u3082\u3057nohup\u3092\u3064\u3051\u5fd8\u308c\u305f\u5834\u5408\u306fdisown\u3092\u5b9f\u884c\u3059\u308c\u3070\u540c\u3058\u6271\u3044\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true  \">disown<\/pre>\n","protected":false},"excerpt":{"rendered":"\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30d7\u30ed\u30bb\u30b9\u3068\u306f\uff1f \u901a\u5e38\u306els\u3084\u3001cd\u7b49\u306f\u305d\u306e\u5834\u9650\u308a\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u3059\u3050\u306b\u81ea\u52d5\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u7d42\u4e86\u3057\u307e\u3059\u3002 Linux\u3067\u306f\u3001\u305a\u3063\u3068\u5e38\u99d0\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u3092\u300c\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30d7\u30ed\u30bb\u30b9\u300d\u3068\u547c\u3073 [&hellip;]","protected":false},"author":1,"featured_media":3384,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[39],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3362"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3362"}],"version-history":[{"count":8,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3362\/revisions"}],"predecessor-version":[{"id":20355,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3362\/revisions\/20355"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/3384"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3362"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}