{"id":6584,"date":"2020-02-14T12:56:23","date_gmt":"2020-02-14T04:56:23","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6584"},"modified":"2020-05-23T21:25:56","modified_gmt":"2020-05-23T13:25:56","slug":"htop","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/htop","title":{"rendered":"htop\u547d\u4ee4 – \u4e92\u52a8\u7684\u8fdb\u7a0b\u67e5\u770b\u5668"},"content":{"rendered":"\n
htop\u662flinux\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u4e92\u52a8\u7684\u8fdb\u7a0b\u67e5\u770b\u5668\uff0c\u4e00\u4e2a\u6587\u672c\u6a21\u5f0f\u7684\u5e94\u7528\u7a0b\u5e8f(\u5728\u63a7\u5236\u53f0\u6216\u8005X\u7ec8\u7aef\u4e2d)\uff0c\u9700\u8981ncurses\u3002htop\u6bd4\u8f83\u4eba\u6027\u5316\u3002\u5b83\u53ef\u8ba9\u7528\u6237\u4ea4\u4e92\u5f0f\u64cd\u4f5c\uff0c\u652f\u6301\u989c\u8272\u4e3b\u9898\uff0c\u53ef\u6a2a\u5411\u6216\u7eb5\u5411\u6eda\u52a8\u6d4f\u89c8\u8fdb\u7a0b\u5217\u8868\uff0c\u5e76\u652f\u6301\u9f20\u6807\u64cd\u4f5c\u3002<\/p>\n\n\n\n
htop\u76f8\u6bd4\u8f83top\u7684\u4f18\u52bf\u6709\u53ef\u4ee5\u6a2a\u5411\u6216\u7eb5\u5411\u6eda\u52a8\u6d4f\u89c8\u8fdb\u7a0b\u5217\u8868\uff0c\u4ee5\u4fbf\u770b\u5230\u6240\u6709\u7684\u8fdb\u7a0b\u548c\u5b8c\u6574\u7684\u547d\u4ee4\u884c\u3001\u5728\u542f\u52a8\u4e0a\u6bd4top\u66f4\u5feb\u3001\u6740\u8fdb\u7a0b\u65f6\u4e0d\u9700\u8981\u8f93\u5165\u8fdb\u7a0b\u53f7\u3001\u652f\u6301\u9f20\u6807\u9009\u4e2d\u64cd\u4f5c\u3001top\u5df2\u4e0d\u518d\u7ef4\u62a4\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>htop [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u4ea4\u4e92\u5f0f\u547d\u4ee4\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u542f\u52a8htop\uff1a<\/p>\n\n\n\n \u4ee5\u5355\u8272\u6a21\u5f0f\u542f\u52a8htop\uff1a<\/p>\n\n\n\n \u8bbe\u7f6e\u663e\u793a\u66f4\u65b0\u7684\u5ef6\u8fdf\u4e3a3\u79d2\uff1a<\/p>\n\n\n\n \u663e\u793a\u4e00\u4e2a\u7ed9\u5b9a\u7684\u7528\u6237\u7684\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n htop\u662flinux\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u4e92\u52a8\u7684\u8fdb\u7a0b\u67e5\u770b\u5668\uff0c\u4e00\u4e2a\u6587\u672c\u6a21\u5f0f\u7684\u5e94\u7528\u7a0b\u5e8f(\u5728\u63a7\u5236\u53f0\u6216\u8005X\u7ec8\u7aef\u4e2d)\uff0c\u9700\u8981ncur […]<\/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\/6584"}],"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=6584"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6584\/revisions"}],"predecessor-version":[{"id":7426,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6584\/revisions\/7426"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-C<\/td> \u4f7f\u7528\u5355\u8272\u914d\u8272\u65b9\u6848<\/td><\/tr> -d<\/td> \u8bbe\u7f6e\u66f4\u65b0\u7684\u5ef6\u8fdf\uff0c \u5355\u4f4d\u662f10\u5fae\u79d2<\/td><\/tr> -s<\/td> \u7eb5\u5217\u6392\u5e8f<\/td><\/tr> -u<\/td> \u53ea\u663e\u793a\u4e00\u4e2a\u6307\u5b9a\u7528\u6237\u7684\u8fdb\u7a0b<\/td><\/tr> -p<\/td> \u53ea\u663e\u793a\u7ed9\u7528\u6237<\/td><\/tr> -h<\/td> \u6253\u5370\u6b64\u547d\u4ee4\u5e2e\u52a9<\/td><\/tr> -v<\/td> \u6253\u5370\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n space<\/td> \u6807\u8bb0\u4e00\u4e2a\u8fdb\u7a0b<\/td><\/tr> U<\/td> \u53d6\u6d88\u6240\u6709\u6807\u8bb0<\/td><\/tr> l<\/td> \u663e\u793a\u8fdb\u7a0b\u6253\u6765\u7684\u6587\u4ef6<\/td><\/tr> u<\/td> \u663e\u793a\u7279\u5b9a\u7528\u6237<\/td><\/tr> M<\/td> \u6309\u7167\u5185\u5b58\u6392\u5e8f<\/td><\/tr> P<\/td> \u6309\u7167CPU\u6392\u5e8f<\/td><\/tr> T<\/td> \u6309\u5728\u7ebf\u65f6\u957f\u6392\u5e8f<\/td><\/tr> \u76f4\u63a5\u8f93\u5165\u6570\u5b57 <\/td> \u67e5\u627e\u5bf9\u5e94\u7684PID\u8fdb\u7a0b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# htop<\/pre>\n\n\n\n
[root@linuxcool ~]# htop -C<\/pre>\n\n\n\n
[root@linuxcool ~]# htop -d 3<\/pre>\n\n\n\n
[root@linuxcool ~]# htop -u linuxcool_user<\/pre>\n","protected":false},"excerpt":{"rendered":"