{"id":711,"date":"2019-04-27T22:07:13","date_gmt":"2019-04-27T14:07:13","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=711"},"modified":"2022-05-10T02:54:52","modified_gmt":"2022-05-09T18:54:52","slug":"top","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/top","title":{"rendered":"top\u547d\u4ee4 – \u5b9e\u65f6\u663e\u793a\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001"},"content":{"rendered":"\n

top\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u5b9e\u65f6\u663e\u793a\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\uff0c\u5305\u542b\u5904\u7406\u5668\u3001\u5185\u5b58\u3001\u670d\u52a1\u3001\u8fdb\u7a0b\u7b49\u91cd\u8981\u8d44\u6e90\u4fe1\u606f\u3002\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u4eec\u5e38\u5e38\u4f1a\u628atop\u547d\u4ee4\u6bd4\u4f5c\u662f\u201c\u52a0\u5f3a\u7248\u7684Windows\u4efb\u52a1\u7ba1\u7406\u5668\u201d\uff0c\u56e0\u4e3a\u9664\u4e86\u80fd\u770b\u5230\u5e38\u89c4\u7684\u670d\u52a1\u8fdb\u7a0b\u4fe1\u606f\u4ee5\u5916\uff0c\u8fd8\u80fd\u591f\u5bf9\u5904\u7406\u5668\u548c\u5185\u5b58\u7684\u8d1f\u8f7d\u60c5\u51b5\u4e00\u76ee\u4e86\u7136\uff0c\u5b9e\u65f6\u611f\u77e5\u7cfb\u7edf\u5168\u5c40\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u975e\u5e38\u9002\u5408\u4f5c\u4e3a\u63a5\u624b\u670d\u52a1\u5668\u540e\u6267\u884c\u7684\u7b2c\u4e00\u6761\u547d\u4ee4\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>top [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-d <\u79d2><\/td>\u6539\u53d8\u663e\u793a\u7684\u66f4\u65b0\u901f\u5ea6<\/td><\/tr>
-c  <\/td>\u5207\u6362\u663e\u793a\u6a21\u5f0f <\/td><\/tr>
-s<\/td>\u5b89\u5168\u6a21\u5f0f\uff0c\u4e0d\u5141\u8bb8\u4ea4\u4e92\u5f0f\u6307\u4ee4<\/td><\/tr>
-i<\/td>\u4e0d\u663e\u793a\u4efb\u4f55\u95f2\u7f6e\u6216\u50f5\u6b7b\u7684\u884c\u7a0b <\/td><\/tr>
-n<\/td>\u8bbe\u5b9a\u663e\u793a\u7684\u603b\u6b21\u6570\uff0c\u5b8c\u6210\u540e\u5c06\u4f1a\u81ea\u52a8\u9000\u51fa<\/td><\/tr>
-b<\/td>\u6279\u5904\u7406\u6a21\u5f0f\uff0c\u4e0d\u8fdb\u884c\u4ea4\u4e92\u5f0f\u663e\u793a<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u4ee5\u9ed8\u8ba4\u683c\u5f0f\u663e\u793a\u7cfb\u7edf\u8fd0\u884c\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# top<\/strong>\ntop - 02:48:56 up 20 min,  1 user,  load average: 0.00, 0.00, 0.04\r\nTasks: 432 total,   1 running, 431 sleeping,   0 stopped,   0 zombie\r\n%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 s\r\nMiB Mem :   1966.1 total,    172.1 free,   1339.3 used,    454.7 buff\/cache\r\nMiB Swap:   2048.0 total,   2033.5 free,     14.5 used.    443.4 avail Mem \n\r\n   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                    \r\n  2341 root      20   0 4512280 166396  89992 S  12.5   8.3   0:05.15 gnome-shell                \r\n  2848 root      20   0  177712  28820   7700 S   6.2   1.4   0:01.31 sssd_kcm                   \r\n     1 root      20   0  244748  14180   9052 S   0.0   0.7   0:01.10 systemd                    \r\n     2 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kthreadd  \r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n\n\n\n

\u4ee5\u9ed8\u8ba4\u683c\u5f0f\u663e\u793a\u7cfb\u7edf\u8fd0\u884c\u4fe1\u606f\uff0c\u4f46\u63d0\u4f9b\u5b8c\u6574\u7684\u8fdb\u7a0b\u8def\u5f84\u53ca\u540d\u79f0\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# top -c<\/strong>    <\/pre>\n\n\n\n

\u4ee5\u6279\u5904\u7406\u6a21\u5f0f\u663e\u793a\u7a0b\u5e8f\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# top -b<\/strong><\/pre>\n\n\n\n

\u8bbe\u5b9a\u6bcf\u96945\u79d2\u5237\u65b0\u4e00\u6b21\u4fe1\u606f\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# top -d 5<\/strong><\/pre>\n\n\n\n

\u8bbe\u5b9a\u603b\u663e\u793a\u6b21\u6570\u4e3a3\u56de\uff0c\u968f\u540e\u81ea\u52a8\u9000\u51fa\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# top -n 5<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

top\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u5b9e\u65f6\u663e\u793a\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\uff0c\u5305\u542b\u5904\u7406\u5668\u3001\u5185\u5b58\u3001\u670d\u52a1\u3001\u8fdb\u7a0b\u7b49\u91cd\u8981\u8d44\u6e90\u4fe1\u606f\u3002\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u4eec\u5e38\u5e38\u4f1a\u628at […]<\/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\/711"}],"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=711"}],"version-history":[{"count":15,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/711\/revisions"}],"predecessor-version":[{"id":9436,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/711\/revisions\/9436"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}