{"id":3347,"date":"2018-05-26T16:56:52","date_gmt":"2018-05-26T07:56:52","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=3347"},"modified":"2023-05-27T21:26:21","modified_gmt":"2023-05-27T12:26:21","slug":"%e3%80%90linux%e3%80%91%e3%83%97%e3%83%ad%e3%82%bb%e3%82%b9%e7%ae%a1%e7%90%86%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=3347","title":{"rendered":"\u3010Linux\u3011\u30d7\u30ed\u30bb\u30b9\u306e\u57fa\u672c\u3068\u3001\u300cps\u300d\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>\u30d7\u30ed\u30bb\u30b9\u3068\u306f\uff1f<\/h2>\n<p>\u5b9f\u884c\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3053\u3068\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u5b9f\u884c\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30e1\u30e2\u30ea\u306b\u683c\u7d0d\u3057\u3066\u30e1\u30e2\u30ea\u4e0a\u3067CPU\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u65b0\u3057\u3044\u30d7\u30ed\u30bb\u30b9\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>\u30d7\u30ed\u30bb\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\uff1f<\/h2>\n<p>ps\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3350\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/ps.png\" alt=\"\" width=\"239\" height=\"81\" \/><\/p>\n<h3>ps\u30b3\u30de\u30f3\u30c9\u306e\u5404\u9805\u76ee\u306e\u610f\u5473<\/h3>\n<p><span style=\"color: #ff0000;\"><strong>\u5168\u3066\u306e\u9805\u76ee\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093<\/strong><\/span>\u304c\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f\u4e0b\u8a18\u306e\u8a73\u7d30\u306a\u5217\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u5217\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>USER<\/td>\n<td>\u300c\u30e6\u30fc\u30b6\u30fc\u540d\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>PID<\/td>\n<td>\u300c\u30d7\u30ed\u30bb\u30b9ID\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>%CPU<\/td>\n<td>\u300cCPU\u4f7f\u7528\u7387\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>%MEM<\/td>\n<td>\u300c\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>VSZ<\/td>\n<td>\u300c\u4f7f\u7528\u3057\u3066\u3044\u308b\u4eee\u60f3\u30e1\u30e2\u30ea\u306e\u30b5\u30a4\u30ba\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>RSS<\/td>\n<td>\u300c\u5e38\u99d0\u30bb\u30c3\u30c8\u306e\u5927\u304d\u3055\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>TTY<\/td>\n<td>\u300c\u5236\u5fa1\u3057\u3066\u3044\u308b\u7aef\u672b\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>STAT<\/td>\n<td>\u300c\u30d7\u30ed\u30bb\u30b9\u306e\u72b6\u614b\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>START<\/td>\n<td>\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u59cb\u3057\u305f\u300c\u958b\u59cb\u6642\u523b\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>TIME<\/td>\n<td>\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306bCPU\u304c\u8cbb\u3084\u3057\u305f\u300c\u5b9f\u884c\u6642\u9593\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>CMD<\/td>\n<td>\u300c\u30d7\u30ed\u30bb\u30b9\u540d\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>ps\u30b3\u30de\u30f3\u30c9\u306e\u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\n<p><span style=\"color: #ff0000;\"><strong>\u4ed6\u306e\u30b3\u30de\u30f3\u30c9\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u9055\u3063\u3066\u300c-\u300d(\u30cf\u30a4\u30d5\u30f3)\u3092\u4ed8\u3051\u306a\u3044\u306e\u304c\u7279\u5fb4<\/strong><\/span>\u3067\u3059\u3002\u3082\u3057\u30cf\u30a4\u30d5\u30f3\u3092\u4ed8\u3051\u305f\u5834\u5408\u306f\u5225\u306e\u30b3\u30de\u30f3\u30c9\u6271\u3044\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u30aa\u30d7\u30b7\u30e7\u30f3<\/th>\n<th>\u610f\u5473<\/th>\n<\/tr>\n<tr>\n<td>e<\/td>\n<td>\u5236\u5fa1\u7aef\u672b\u306e\u3042\u308b\u306a\u3057\u306b\u95a2\u308f\u3089\u305a\u3001\u5168\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30bb\u30b9\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>a<\/td>\n<td>\u5236\u5fa1\u7aef\u672b\u304c\u3042\u308b\u5168\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30bb\u30b9\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>x<\/td>\n<td>\u5236\u5fa1\u7aef\u672b\u304c\u306a\u3044\u30d7\u30ed\u30bb\u30b9\u3082\u8868\u793a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>u<\/td>\n<td>\u30e6\u30fc\u30b6\u30fc\u5f62\u5f0f\u3067\u8868\u793a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>w<\/td>\n<td>\u51fa\u529b\u306e\u5e45\u3092\u5e83\u3052\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>f<\/td>\n<td>\u30d7\u30ed\u30bb\u30b9\u306e\u89aa\u5b50\u95a2\u4fc2\u3092\u30c4\u30ea\u30fc\u4e0a\u3067\u8868\u793a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>l<\/td>\n<td>\u8a73\u7d30\u60c5\u5831\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u826f\u304f\u4f7f\u308f\u308c\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u7d44\u307f\u5408\u308f\u305b<\/h4>\n<p><span style=\"color: #ff0000;\"><strong>\u300caux\u300d<\/strong><\/span>\u304c\u826f\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u5168\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u5168\u3066\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u8a73\u7d30\u60c5\u5831\u3082\u5408\u308f\u305b\u3066\u8868\u793a<\/strong><\/span>\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3354\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/ps_aux.png\" alt=\"\" width=\"636\" height=\"134\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/ps_aux.png 636w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/ps_aux-300x63.png 300w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/p>\n<h2>\u30d7\u30ed\u30bb\u30b9\u306e\u89aa\u5b50\u95a2\u4fc2\u306b\u3064\u3044\u3066<\/h2>\n<p>\u30d7\u30ed\u30bb\u30b9\u306b\u306f\u3001\u89aa\u5b50\u95a2\u4fc2\u304c\u3042\u308a\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u305d\u308c\u306f<span style=\"color: #ff0000;\"><strong>\u300c\u89aa\u30d7\u30ed\u30bb\u30b9\u300d<\/strong><\/span>\u306b\u306a\u308a\u3001\u89aa\u30d7\u30ed\u30bb\u30b9\u304b\u3089\u65b0\u3057\u304f\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092<span style=\"color: #ff0000;\"><strong>\u300c\u5b50\u30d7\u30ed\u30bb\u30b9\u300d<\/strong><\/span>\u3068\u3044\u3044\u307e\u3059\u3002<\/p>\n<p>pstree\u30b3\u30de\u30f3\u30c9\u3067\u3001\u305d\u306e\u89aa\u5b50\u95a2\u4fc2\u3092\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3358\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/pstree.png\" alt=\"\" width=\"351\" height=\"32\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/pstree.png 351w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/pstree-300x27.png 300w\" sizes=\"(max-width: 351px) 100vw, 351px\" \/><\/p>\n<p>\u4e0a\u8a18\u4f8b\u3060\u3068\u3001ssh\u63a5\u7d9a\u3092\u3057\u305f\u5f8c\u3001\u30ed\u30b0\u30a4\u30f3\u306b\u3088\u308abash\u304c\u547c\u3070\u308c\u3066\u3001su\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u5909\u66f4\u3057\u3001bash\u304c\u307e\u305f\u547c\u3070\u308c\u3066\u3001pstree\u3092\u547c\u3093\u3060\u3068\u8a00\u3046\u89aa\u5b50\u95a2\u4fc2\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u30d7\u30ed\u30bb\u30b9\u3068\u306f\uff1f \u5b9f\u884c\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3053\u3068\u3067\u3001\u5b9f\u884c\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30e1\u30e2\u30ea\u306b\u683c\u7d0d\u3057\u3066\u30e1\u30e2\u30ea\u4e0a\u3067CPU\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u65b0\u3057\u3044\u30d7\u30ed\u30bb\u30b9\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002 \u30d7\u30ed\u30bb\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\uff1f ps\u30b3\u30de\u30f3\u30c9\u3092\u4f7f [&hellip;]","protected":false},"author":1,"featured_media":1398,"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\/3347"}],"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=3347"}],"version-history":[{"count":15,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3347\/revisions"}],"predecessor-version":[{"id":20356,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3347\/revisions\/20356"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/1398"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3347"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}