{"id":7834,"date":"2023-01-11T20:57:13","date_gmt":"2023-01-11T11:57:13","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=7834"},"modified":"2023-09-06T07:03:06","modified_gmt":"2023-09-05T22:03:06","slug":"linux%e3%81%a7%e3%83%97%e3%83%ad%e3%82%bb%e3%82%b9%e4%b8%80%e8%a6%a7%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88ps%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/7834","title":{"rendered":"Linux\u3067\u30d7\u30ed\u30bb\u30b9\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\uff01\uff08ps\uff09"},"content":{"rendered":"<p>Linux\u3067\u30d7\u30ed\u30bb\u30b9\u4e00\u89a7\u3092\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u5168\u30d7\u30ed\u30bb\u30b9\u4e00\u89a7\u3092\u89aa\u30d7\u30ed\u30bb\u30b9\u306eID\u3068\u3068\u3082\u306b\u8868\u793a\u3059\u308b\uff01\uff08ps -ef\uff09<\/h2>\n<p>\u5168\u30d7\u30ed\u30bb\u30b9\u4e00\u89a7\u3092\u89aa\u30d7\u30ed\u30bb\u30b9\u306eID\u3068\u3068\u3082\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u89aa\u30d7\u30ed\u30bb\u30b9\u306ePID\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u5834\u5408\u306b\u3001\u4e00\u756a\u4f7f\u7528\u983b\u5ea6\u304c\u9ad8\u3044\u3068\u601d\u308f\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ps -ef | head\r\nUID          PID    PPID  C STIME TTY          TIME CMD\r\nroot           1       0  0 20:27 ?        00:00:01 \/sbin\/init splash\r\nroot           2       0  0 20:27 ?        00:00:00 &#x5B;kthreadd]\r\nroot           3       2  0 20:27 ?        00:00:00 &#x5B;rcu_gp]\r\nroot           4       2  0 20:27 ?        00:00:00 &#x5B;rcu_par_gp]\r\nroot           5       2  0 20:27 ?        00:00:00 &#x5B;slub_flushwq]\r\nroot           6       2  0 20:27 ?        00:00:00 &#x5B;netns]\r\nroot           8       2  0 20:27 ?        00:00:00 &#x5B;kworker\/0:0H-events_highpri]\r\nroot           9       2  0 20:27 ?        00:00:00 &#x5B;kworker\/u16:0-i915]\r\nroot          10       2  0 20:27 ?        00:00:00 &#x5B;mm_percpu_wq]\r\n<\/pre>\n<h2>\u5168\u30d7\u30ed\u30bb\u30b9\u4e00\u89a7\u3092\u89aa\u30d7\u30ed\u30bb\u30b9\u306eID\u3068\u3068\u3082\u306b\u8868\u793a\u3059\u308b\uff01\uff08ps aux\uff09<\/h2>\n<p>\u30d7\u30ed\u30bb\u30b9\u306eCPU\u4f7f\u7528\u7387\u3084\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u304c\u8868\u793a\u3055\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u30d7\u30ed\u30bb\u30b9\u306e\u8d77\u52d5\u6642\u523b\u3082\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ps aux | head\r\nUSER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\r\nroot           1  0.0  0.0 167488 12812 ?        Ss   20:27   0:01 \/sbin\/init splash\r\nroot           2  0.0  0.0      0     0 ?        S    20:27   0:00 &#x5B;kthreadd]\r\nroot           3  0.0  0.0      0     0 ?        I&lt;   20:27   0:00 &#x5B;rcu_gp]\r\nroot           4  0.0  0.0      0     0 ?        I&lt;   20:27   0:00 &#x5B;rcu_par_gp]\r\nroot           5  0.0  0.0      0     0 ?        I&lt;   20:27   0:00 &#x5B;slub_flushwq]\r\nroot           6  0.0  0.0      0     0 ?        I&lt;   20:27   0:00 &#x5B;netns]\r\nroot           8  0.0  0.0      0     0 ?        I&lt;   20:27   0:00 &#x5B;kworker\/0:0H-events_highpri]\r\nroot           9  0.0  0.0      0     0 ?        I    20:27   0:00 &#x5B;kworker\/u16:0-i915]\r\nroot          10  0.0  0.0      0     0 ?        I&lt;   20:27   0:00 &#x5B;mm_percpu_wq]\r\n<\/pre>\n<h2>\u7279\u5b9a\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u6709\u7121\u3092\u78ba\u8a8d\u3059\u308b\uff01\uff08ps -ef | grep XXXX | grep -v\uff09<\/h2>\n<p>\u7279\u5b9a\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u5b58\u5728\u306e\u6709\u7121\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u30b7\u30a7\u30eb\u3067\u3082\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u540d\u300cXXXX\u300d\u306b\u300csshd\u300d\u3092\u6307\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ps -ef | grep sshd | grep -v grep\r\nroot        1508       1  0 20:27 ?        00:00:00 sshd: \/usr\/sbin\/sshd -D &#x5B;listener] 0 of 10-100 startups\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>ps\u30b3\u30de\u30f3\u30c9\u3092\u76ee\u7684\u5225\u306b\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/9073\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u884c\u3092\u5236\u5fa1\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u884c\u3092\u5236\u5fa1\u3059\u308b\uff01<\/div><div class=\"substr\">Linux\u3067\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u884c\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3H5qkUu\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/51ZPkoBGdZL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u3067\u30d7\u30ed\u30bb\u30b9\u4e00\u89a7\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[200],"tags":[282,1060,25,876,383],"class_list":["post-7834","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-process","tag-linux","tag-ps","tag-25","tag-876","tag-383"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=7834"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7834\/revisions"}],"predecessor-version":[{"id":14895,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7834\/revisions\/14895"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=7834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=7834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=7834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}