{"id":10834,"date":"2023-02-02T06:22:06","date_gmt":"2023-02-01T22:22:06","guid":{"rendered":"https:\/\/www.linuxcool.com\/lxjklmlpmlhd"},"modified":"2023-02-02T06:22:06","modified_gmt":"2023-02-01T22:22:06","slug":"lxjklmlpmlhd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lxjklmlpmlhd","title":{"rendered":"Linux\u4e0b\u76d1\u63a7\u7c7b\u547d\u4ee4ps\u547d\u4ee4\u548cdffree\u547d\u4ee4top\u547d\u4ee4"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><a style='color:#0000CC' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a>\u4e0b\u76d1\u63a7\u7c7b<a style='color:#0000CC' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>ps\u547d\u4ee4du\u548cdffree\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top\u547d\u4ee4\uff0c\u662fLinux\u4e0b\u5e38\u7528\u7684\u6027\u80fd\u5206\u6790\u5de5\u5177<strong>linux<a style='color:#0000CC' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>\u547d\u4ee4topfree\u7684\u4f7f\u7528\u53ca\u53c2\u6570\u8be6\u89e3<\/strong>\uff0c\u80fd\u591f\u5b9e\u65f6\u663e\u793a\u7cfb\u7edf\u4e2d\u5404\u4e2a\u8fdb\u7a0b\u7684\u8d44\u6e90\u5360\u7528\u72b6\u51b5\uff0c\u4e00\u822c\u7cfb\u7edf\u8d44\u6e90\u5bfc\u81f4\u7684\u5d29\u6e83\u95ee\u9898\u53ef\u4ee5\u4f7f\u7528top\u5b9e\u65f6\u76d1\u63a7\u5404\u8fdb\u7a0b\uff0c\u8f93\u51fa\u5230\u65e5\u5fd7\u6587\u4ef6\u5206\u6790\u67d0\u4e2a\u8fdb\u7a0b\u662f\u5426\u5047\u6027\u91ca\u653e\u2026 \u2026<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top\u4fe1\u606f\u89e3\u91ca<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u8fd9\u91cc\u5f15\u7528\u4e4b\u524d\u6587\u7ae0\u7684top\u547d\u4ee4\u622a\u56fe linux\u7cfb\u7edf\u5982\u4f55\u67e5\u770b\u5185\u5b58\uff1a\u6587\u4e2d\u7b2c\u56db\u9879top\u547d\u4ee4\u3002\u4e0b\u9762\u5bf9\u56fe\u4e2d\u6240\u793a\u4fe1\u606f\u9010\u884c\u8bf4\u660e\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u7b2c\u4e00\u884c\uff1a\u4efb\u52a1\u961f\u5217\u4fe1\u606f\uff0c\u540cuptime\u547d\u4ee4\u7684\u6267\u884c\u7ed3\u679c<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>16:29:14\uff1a \u5f53\u524d\u7cfb\u7edf\u65f6\u95f4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>up 4min\uff1a \u7cfb\u7edf\u5df2\u7ecf\u8fd0\u884c\u4e864\u5206\u949f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>3 user\uff1a \u5f53\u524d\u67093\u4e2a\u7528\u6237\u767b\u5f55\u7cfb\u7edf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>load average: 0.01, 0.06, 0.03\uff1a 1\u5206\u949f\uff0c5\u5206\u949f\uff0c15\u5206\u949f\u7684\u5e73\u5747\u8d1f\u8f7d\u60c5\u51b5<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u7b2c\u4e8c\u884c\uff1aTasks\u4efb\u52a1\uff08\u8fdb\u7a0b\uff09\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5171\u6709128\u4e2a\u8fdb\u7a0b\uff0c\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u7684\u67092\u4e2a\uff0c81\u4e2a\u5728\u4f11\u7720\uff0cstoped\uff08\u505c\u6b62\uff09\u72b6\u60010\u4e2a\uff0czombie\uff08\u50f5\u5c38\uff09\u72b6\u6001\u67091\u4e2a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u7b2c\u4e09\u884c\uff1aCPU\u72b6\u6001\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>us\uff1a \u7528\u6237\u7a7a\u95f4\u5360\u7528CPU\u7684\u767e\u5206\u6bd4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>sy\uff1a \u5185\u6838\u7a7a\u95f4\u5360\u7528cpu\u7684\u767e\u5206\u6bd4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ni\uff1a \u6539\u53d8\u4f18\u5148\u7ea7\u7684\u8fdb\u7a0b\u5360\u7528CPU\u7684\u767e\u5206\u6bd4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>id\uff1a \u7a7a\u95f2CPU\u767e\u5206\u6bd4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>wa\uff1a I\/O\u7b49\u5f85\u53ea\u7528CPU\u7684\u767e\u5206\u6bd4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>hi\uff1a \u786c\u4e2d\u65ad\uff08Hardware IRQ\uff09\u5360\u7528CPU\u7684\u767e\u5206\u6bd4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>si\uff1a \u8f6f\u4e2d\u65ad\uff08Software Interrupts\uff09\u5360\u7528CPU\u7684\u767e\u5206\u6bd4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>st\uff1a \u865a\u62df\u673a\u5360\u7528CPU\u7684\u767e\u5206\u6bd4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u7b2c\u56db\u884c\uff1a\u5185\u5b58\u72b6\u6001<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>total\uff1a \u7269\u7406\u5185\u5b58\u603b\u91cf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>used\uff1a \u4f7f\u7528\u4e2d\u7684\u5185\u5b58\u603b\u91cf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>free\uff1a \u7a7a\u95f2\u5185\u5b58\u603b\u91cf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>buffers\uff1a \u7f13\u51b2\u7684\u5185\u5b58\u91cf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u7b2c\u4e94\u884c\uff1aswap\u4ea4\u6362\u5206\u533a\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>total\uff1a \u4ea4\u6362\u5206\u533a\u603b\u91cf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>used\uff1a \u4f7f\u7528\u7684\u4ea4\u6362\u533a\u603b\u91cf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>free\uff1a \u7a7a\u95f2\u4ea4\u6362\u533a\u603b\u91cf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>cached\uff1a \u7f13\u5b58\u7684\u5185\u5b58\u91cf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u7b2c\u516d\u884c\uff1a\u7a7a\u884c<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u7b2c\u4e03\u884c\uff1a\u7ed9\u51fa\u7684\u5404\u8fdb\u7a0b\uff08\u4efb\u52a1\uff09\u7684\u72b6\u6001\u76d1\u63a7<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>PID\uff08Process ID\uff09\uff1a\u8fdb\u7a0b\u6807\u793a\u53f7\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>USER\uff1a\u8fdb\u7a0b\u6240\u6709\u8005\u7684\u7528\u6237\u540d\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>PR\uff1a\u8fdb\u7a0b\u7684\u4f18\u5148\u7ea7\u522b\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>NI\uff1a\u8fdb\u7a0b\u7684\u4f18\u5148\u7ea7\u522b\u6570\u503c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>VIRT\uff1a\u8fdb\u7a0b\u5360\u7528\u7684\u865a\u62df\u5185\u5b58\u503c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>RES\uff1a\u8fdb\u7a0b\u5360\u7528\u7684\u7269\u7406\u5185\u5b58\u503c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>SHR\uff1a\u8fdb\u7a0b\u4f7f\u7528\u7684\u5171\u4eab\u5185\u5b58\u503c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>S\uff1a\u8fdb\u7a0b\u7684\u72b6\u6001\uff0c\u5176\u4e2dS\u8868\u793a\u4f11\u7720\uff0cR\u8868\u793a\u6b63\u5728\u8fd0\u884c\uff0cZ\u8868\u793a\u50f5\u6b7b\u72b6\u6001\uff0cN\u8868\u793a\u8be5\u8fdb\u7a0b\u4f18\u5148\u503c\u662f\u8d1f\u6570\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>%CPU\uff1a\u8be5\u8fdb\u7a0b\u5360\u7528\u7684CPU\u4f7f\u7528\u7387\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>%MEM\uff1a\u8be5\u8fdb\u7a0b\u5360\u7528\u7684\u7269\u7406\u5185\u5b58\u548c\u603b\u5185\u5b58\u7684\u767e\u5206\u6bd4\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>TIME\uff0b\uff1a\u8be5\u8fdb\u7a0b\u542f\u52a8\u540e\u5360\u7528\u7684\u603b\u7684CPU\u65f6\u95f4\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Command\uff1a\u8fdb\u7a0b\u542f\u52a8\u7684\u542f\u52a8\u547d\u4ee4\u540d\u79f0\uff0c\u5982\u679c\u8fd9\u4e00\u884c\u663e\u793a\u4e0d\u4e0b\uff0c\u8fdb\u7a0b\u4f1a\u6709\u4e00\u4e2a\u5b8c\u6574\u7684\u547d\u4ee4\u884c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top\u53c2\u6570\u4f7f\u7528<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top [-d number] | top [-bnp]<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-a# \u5c06\u8fdb\u7a0b\u6309\u7167\u4f7f\u7528\u5185\u5b58\u6392\u5e8f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-b# \u6279\u5904\u7406\u7684\u6a21\u5f0f\u663e\u793a\u8fdb\u7a0b\u4fe1\u606f\uff0c\u8f93\u51fa\u7ed3\u679c\u53ef\u4ee5\u4f20\u9012\u7ed9\u5176\u4ed6\u7a0b\u5e8f\u6216\u5199\u5165\u5230\u6587\u4ef6\u4e2d\uff0c\u914d\u5408-n\u4f7f\u7528\uff0c\u4e00\u76f4\u6253\u5230-n\u8bbe\u7f6e\u7684\u9608\u503c<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-c# \u663e\u793a\u8fdb\u7a0b\u7684\u6574\u4e2a\u547d\u4ee4\u8def\u5f84\uff0c\u800c\u4e0d\u662f\u53ea\u663e\u793a\u547d\u4ee4\u540d\u79f0<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-d# number\u4ee3\u8868\u79d2\u6570\uff0c\u8868\u793atop\u547d\u4ee4\u663e\u793a\u7684\u9875\u9762\u66f4\u65b0\u4e00\u6b21\u7684\u95f4\u9694\u3002\u9ed8\u8ba4\u662f5\u79d2\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-H# \u6307\u5b9a\u8fd9\u4e2a\u53ef\u4ee5\u663e\u793a\u6bcf\u4e2a\u7ebf\u7a0b\u7684\u60c5\u51b5\uff0c\u5426\u5219\u5c31\u662f\u8fdb\u7a0b\u7684\u603b\u7684\u72b6\u6001<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-i# \u4e0d\u663e\u793a\u95f2\u7f6e\u6216\u8005\u50f5\u6b7b\u7684\u8fdb\u7a0b\u72b6\u6001<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/02\/1675290126401_0.png' alt='linux\u547d\u4ee4\u4f7f\u7528\u8be6\u89e3_linux\u7cfb\u7edf\u547d\u4ee4topfree\u7684\u4f7f\u7528\u53ca\u53c2\u6570\u8be6\u89e3_linux\u7cfb\u7edf\u547d\u4ee4topfree\u7684\u4f7f\u7528\u53ca\u53c2\u6570\u8be6\u89e3' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-n# top\u8f93\u51fa\u4fe1\u606f\u66f4\u65b0\u7684\u6b21\u6570\uff0c\u5b8c\u6210\u540e\u5c06\u9000\u51fatop\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-p# \u663e\u793a\u6307\u5b9a\u7684\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728top\u547d\u4ee4\u663e\u793a\u7684\u9875\u9762\u8fd8\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u6309\u952e\u6267\u884c\u76f8\u5e94\u7684\u529f\u80fd\uff08\u6ce8\u610f\u5927\u5c0f\u5199\u533a\u5206\u7684\uff09\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>?(h)\uff1a\u663e\u793a\u5728top\u5f53\u4e2d\u53ef\u4ee5\u8f93\u5165\u7684\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>P\uff1a\u4ee5CPU\u7684\u4f7f\u7528\u8d44\u6e90\u6392\u5e8f\u663e\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>M\uff1a\u4ee5\u5185\u5b58\u7684\u4f7f\u7528\u8d44\u6e90\u6392\u5e8f\u663e\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>N\uff1a\u4ee5pid\u6392\u5e8f\u663e\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>T\uff1a\u7531\u8fdb\u7a0b\u4f7f\u7528\u7684\u65f6\u95f4\u7d2f\u8ba1\u6392\u5e8f\u663e\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>k\uff1a\u7ed9\u67d0\u4e00\u4e2apid\u4e00\u4e2a\u4fe1\u53f7\u3002\u53ef\u4ee5\u7528\u6765\u6740\u6b7b\u8fdb\u7a0b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>r\uff1a\u7ed9\u67d0\u4e2apid\u91cd\u65b0\u5b9a\u5236\u4e00\u4e2anice\u503c\uff08\u5373\u4f18\u5148\u7ea7\uff09<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>q\uff1a\u9000\u51fatop\uff08\u7528ctrl+c\u4e5f\u53ef\u4ee5\u9000\u51fatop\uff09<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u53ea\u662f\u4e3a\u4e86\u67e5\u770b\u8d44\u6e90\u4fe1\u606f\uff0c\u4e00\u822c\u7684\u5199\u6cd5\u5982\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff01\uff01\uff01<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top\uff1a\u663e\u793a\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top -n 1\uff1a\u663e\u793a1\u79d2\u540e\u7ec8\u6b62\u66f4\u65b0\u663e\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top -d 3\uff1a\u8868\u793a\u66f4\u65b0\u65f6\u95f4\u4e3a3\u79d2<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top -p PID\uff1a\u663e\u793a\u8fdb\u7a0b\u53f7\u4e3aPID\u7684\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top -u userName\uff1a\u663e\u793a\u7528\u6237userName\u7684\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>top\u547d\u4ee4\u662f\u4e00\u4e2a\u529f\u80fd\u5341\u5206\u5f3a\u5927\u7684\u76d1\u63a7\u7cfb\u7edf\u7684\u5de5\u5177\uff0c\u5bf9\u4e8e\u7cfb\u7edf\u7ba1\u7406\u5458\u800c\u8a00\u5c24\u5176\u91cd\u8981\u3002\u4f46\u662f\uff0c\u5b83\u7684\u7f3a\u70b9\u662f\u4f1a\u6d88\u8017\u5f88\u591a\u7cfb\u7edf\u8d44\u6e90\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4f7f\u7528top\u547d\u4ee4\u53ef\u4ee5\u76d1\u89c6\u6307\u5b9a\u7528\u6237\uff0c\u7f3a\u7701\u60c5\u51b5\u662f\u76d1\u89c6\u6240\u6709\u7528\u6237\u7684\u8fdb\u7a0b\u3002\u5982\u679c\u60f3\u67e5\u770b\u6307\u5b9a\u7528\u6237\u7684\u60c5\u51b5\uff0c\u5728\u7ec8\u7aef\u4e2d\u6309\u201cU\u201d\u952e\uff0c\u7136\u540e\u8f93\u5165\u7528\u6237\u540d\uff0c\u7cfb\u7edf\u5c31\u4f1a\u5207\u6362\u4e3a\u6307\u5b9a\u7528\u6237\u7684\u8fdb\u7a0b\u8fd0\u884c\u754c\u9762\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ps\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ps\u547d\u4ee4\u662f\u6700\u57fa\u672c\u7684\u8fdb\u7a0b\u67e5\u770b\u547d\u4ee4\uff0c\u683c\u5f0f\u4e3a\uff1aps [options]\uff0c\u901a\u8fc7\u6267\u884cman ps\u547d\u4ee4\u8fdb\u884c\u67e5\u770b\u6587\u6863\u8bf4\u660e\uff0c\u4f7f\u7528ps\u53ef\u4ee5\u770b\u5230\u6709\u54ea\u4e9b\u8fdb\u7a0b\u6b63\u5728\u8fd0\u884c\uff0c\u5e76\u4e14\u53ef\u4ee5\u770b\u5230\u8fdb\u7a0b\u7684\u8fd0\u884c\u72b6\u6001\u3001\u8fdb\u7a0b\u662f\u5426\u7ed3\u675f\u3001\u8fdb\u7a0b\u6709\u6ca1\u6709\u50f5\u6b7b\u3001\u54ea\u4e9b\u8fdb\u7a0b\u5360\u7528\u4e86\u8fc7\u591a\u7684\u8d44\u6e90\u7b49\u7b49\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6ce8\u610f\u7684\u662f\uff1aps\u662f\u663e\u793a\u77ac\u95f4\u8fdb\u7a0b\u7684\u72b6\u6001\uff0c\u5e76\u4e0d\u52a8\u6001\u8fde\u7eed\uff0c\u5982\u679c\u60f3\u5bf9\u8fdb\u7a0b\u8fdb\u884c\u5b9e\u65f6\u76d1\u63a7\u5e94\u8be5\u7528top\u547d\u4ee4\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ps\u4fe1\u606f\u89e3\u91ca<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4ee5ps -aux\u4e3a\u4f8b\uff08\u56fe\u7247\u5f15\u81eaYoungerChina\uff09<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"prism language-c\"><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">USER\uff1a\u8868\u793a\u8be5\u8fdb\u7a0b\u5c5e\u4e8e\u54ea\u4e2a\u7528\u6237<\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">PID\uff1a\u8fdb\u7a0bid<\/span><\/span>\n# <span class=\"token operator\">%<\/span>CPU\uff1a\u8be5\u8fdb\u7a0b\u5360\u7528CPU\u8d44\u6e90\u7684\u767e\u5206\u6bd4\n# <span class=\"token operator\">%<\/span>MEM\uff1a\u8be5\u8fdb\u7a0b\u5360\u7528\u5185\u5b58\u7684\u767e\u5206\u6bd4\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">VSZ\uff1a\u8be5\u8fdb\u7a0b\u4f7f\u7528\u6389\u7684\u865a\u62df\u5185\u5b58\u91cf <span class=\"token punctuation\">(<\/span>Kbytes<span class=\"token punctuation\">)<\/span><\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">RSS\uff1a\u8be5\u8fdb\u7a0b\u5360\u7528\u7684\u56fa\u5b9a\u7684\u5185\u5b58\u91cf <span class=\"token punctuation\">(<\/span>Kbytes<span class=\"token punctuation\">)<\/span><\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">TTY\uff1a\u8be5\u8fdb\u7a0b\u662f\u5728\u90a3\u4e2a\u7ec8\u7aef\u673a\u4e0a\u9762\u8fd0\u884c\uff0c\u82e5\u4e0e\u7ec8\u7aef\u673a\u65e0\u5173\uff0c\u5219\u663e\u793a<span class=\"token operator\">?<\/span>\uff0c\u53e6\u5916\uff0ctty1<span class=\"token operator\">-<\/span>tty6 \u662f\u672c\u673a\u4e0a\u9762\u7684\u767b\u5165\u8005\u7a0b\u5e8f\uff0c\u82e5\u4e3a pts<span class=\"token operator\">\/<\/span><span class=\"token number\">0<\/span> \u7b49\u7b49\u7684\uff0c\u5219\u8868\u793a\u4e3a\u7531\u7f51\u7edc\u8fde\u63a5\u8fdb\u4e3b\u673a\u7684\u7a0b\u5e8f\u3002<\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">STAT\uff1a\u4ee3\u8868\u8be5\u8fdb\u7a0b\u76ee\u524d\u7684\u72b6\u6001\uff0c\u4e3b\u8981\u7684\u72b6\u6001\u6709\uff1a<\/span><\/span>R\uff1a\u8be5\u8fdb\u7a0b\u6b63\u5728\u8fd0\u884cS\uff1a\u8be5\u8fdb\u7a0b\u6b63\u5728\u4f11\u7720\uff0c\u4f46\u53ef\u88ab\u67d0\u4e9b\u4fe1\u53f7<span class=\"token punctuation\">(<\/span>signal<span class=\"token punctuation\">)<\/span>\u5524\u9192D\uff1a\u65e0\u6cd5\u4e2d\u65ad\u7684\u4f11\u7720\u72b6\u6001<span class=\"token punctuation\">(<\/span>\u901a\u5e38\u4e3aIO\u8fdb\u7a0b<span class=\"token punctuation\">)<\/span>T\uff1a\u8be5\u8fdb\u7a0b\u5df2\u7ecf\u505c\u6b62Z\uff1a\u50f5\u6b7b\u72b6\u6001\uff0c\u8be5\u8fdb\u7a0b\u5e94\u8be5\u5df2\u7ecf\u7ec8\u6b62\uff0c\u4f46\u662f\u5176\u7236\u8fdb\u7a0b\u5374\u65e0\u6cd5\u6b63\u5e38\u7684\u7ec8\u6b62\u5b83\uff0c\u9020\u6210<span class=\"token function\">zombie<\/span><span class=\"token punctuation\">(<\/span>\u7586\u5c38<span class=\"token punctuation\">)<\/span>\u7a0b\u5e8f\u7684\u72b6\u6001W\uff1a\u7b49\u5f85\u72b6\u6001\uff0c\u7b49\u5f85\u5185\u5b58\u7684\u5206\u914d<span class=\"token operator\">&lt;<\/span>\uff1a\u9ad8\u4f18\u5148\u7ea7\u7684\u8fdb\u7a0b\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">N\uff1a\u4f4e\u4f18\u5148\u7ea7\u7684\u8fdb\u7a0b<\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">START\uff1a\u8be5\u8fdb\u7a0b\u88ab\u89e6\u53d1\u542f\u52a8\u7684\u65f6\u95f4<\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">COMMAND\uff1a\u8be5\u8fdb\u7a0b\u7684\u5b9e\u9645\u6307\u4ee4<\/span><\/span>\n<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ps\u53c2\u6570\u4f7f\u7528<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ps\u7684\u53c2\u6570\u7ec4\u5408\u79cd\u7c7b\u975e\u5e38\u591alinux find\uff0c\u4f46\u662f\u5e38\u7528\u7684\u4e5f\u5c31\u662f\u51e0\u4e2a\uff0c\u4e0b\u9762\u5217\u51fa\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5e38\u7528\u7ec4\u5408\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"prism language-c\"><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token directive keyword\">ps<\/span> <span class=\"token expression\"><span class=\"token operator\">-<\/span>aux\uff1a\u67e5\u770b\u7cfb\u7edf\u6240\u6709\u8fdb\u7a0b<\/span><\/span>\n<span class=\"token comment\">\/\/ps -aux\u9ed8\u8ba4\u662f\u65e0\u5e8f\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7--sort\u547d\u4ee4\u6765\u6392\u5e8f<\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token directive keyword\">ps<\/span> <span class=\"token expression\"><span class=\"token operator\">-<\/span>aux <span class=\"token operator\">--<\/span>sort <span class=\"token operator\">-<\/span>pcpu<span class=\"token operator\">|<\/span>less <span class=\"token operator\">-<\/span>N     #\u6309\u7167cpu\u5360\u7528\u6765\u6392\u5e8f<\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token directive keyword\">ps<\/span> <span class=\"token expression\"><span class=\"token operator\">-<\/span>aux <span class=\"token operator\">--<\/span>sort <span class=\"token operator\">-<\/span>pmem<span class=\"token operator\">|<\/span>less <span class=\"token operator\">-<\/span>N     #\u6309\u7167\u5185\u5b58\u5360\u7528\u6765\u6392\u5e8f<\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token directive keyword\">ps<\/span> <span class=\"token expression\"><span class=\"token operator\">-<\/span>aux <span class=\"token operator\">|<\/span> grep debug             #\u67e5\u770b\u6307\u5b9a\u8fdb\u7a0b\uff08\u6b64\u4e3a\u67e5\u770b\u540d\u4e3adebug\u7684\u8fdb\u7a0b\uff09<\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token directive keyword\">ps<\/span> <span class=\"token expression\"><span class=\"token operator\">-<\/span>l                            #\u67e5\u770b\u5f53\u524d\u7528\u6237\u7684\u8fdb\u7a0b<\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token directive keyword\">ps<\/span> <span class=\"token expression\"><span class=\"token operator\">-<\/span>axjf                         #\u4ee5\u8fdb\u7a0b\u6811\u7ed3\u6784\u663e\u793a\u8fc7\u7a0b<\/span><\/span>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token directive keyword\">ps<\/span> <span class=\"token expression\"><span class=\"token operator\">-<\/span>efL                          #\u83b7\u53d6\u6709\u5173\u7ebf\u7a0b\u7684\u4fe1\u606f<\/span><\/span>\n<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5e38\u89c1\u4f7f\u7528\u573a\u666f\u4e00\uff1a\u627e\u51fa\u7535\u8111\u4e2d\u7684\u67d0\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u914d\u5408kill\u547d\u4ee4\uff0c\u7ed3\u675f\u8be5\u8fdb\u7a0b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u2460\u4f7f\u7528ps\u548cgrep\u547d\u4ee4\uff0c\u67e5\u627e\u51fa\u5bf9\u5e94\u7a0b\u5e8f\u7684\u8fdb\u7a0b\u53f7\uff0c\u6bd4\u5982\u67e5\u770b\u627etail\u7684\u8fdb\u7a0b\u53f7\uff1aps -ef |grep \u201ctail\u201d<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u2461\u627e\u51fa\u8fdb\u7a0b\u53f7\uff0c\u4f7f\u7528kill -9 \u8fdb\u7a0b\u53f7\u547d\u4ee4\u7ed3\u675f\u8be5\u8fdb\u7a0b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5e38\u89c1\u4f7f\u7528\u573a\u666f\u4e8c\uff1a\u7528\u4e8e\u786e\u5b9a\u67d0\u4e00\u4e2a\u7a0b\u5e8f\u662f\u5426\u5df2\u7ecf\u542f\u7528\uff1aps -ef |grep \u201ctail\u201d<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>du\u548cdf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>du\u663e\u793a\u6bcf\u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u78c1\u76d8\u4f7f\u7528\u7a7a\u95f4\uff0c\u4f7f\u7528\u683c\u5f0f\uff1adu [\u9009\u9879] [\u6587\u4ef6]<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"prism language-c\"><span class=\"token operator\">-<\/span>a\u6216<span class=\"token operator\">-<\/span>all  \u5217\u51fa\u6240you\u7684\u6587\u4ef6\u4e0e\u76ee\u5f55\u5bb9\u91cf\uff0c\u56e0\u4e3a\u9ed8\u8ba4\u4ec5\u7edf\u8ba1\u76ee\u5f55\u4e0b\u9762\u7684\u6587\u4ef6\u91cf  \n<span class=\"token operator\">-<\/span>b\u6216<span class=\"token operator\">-<\/span>bytes  \u663e\u793a\u76ee\u5f55\u6216\u6587\u4ef6\u5927\u5c0f\u65f6\uff0c\u4ee5byte\u4e3a\u5355\u4f4d\u3002   \n<span class=\"token operator\">-<\/span>c\u6216<span class=\"token operator\">--<\/span>total  \u9664\u4e86\u663e\u793a\u4e2a\u522b\u76ee\u5f55\u6216\u6587\u4ef6\u7684\u5927\u5c0f\u5916\uff0c\u540c\u65f6\u4e5f\u663e\u793a\u6240\u6709\u76ee\u5f55\u6216\u6587\u4ef6\u7684\u603b\u548c\u3002\n<span class=\"token operator\">-<\/span>k\u6216<span class=\"token operator\">--<\/span>kilobytes  \u4ee5<span class=\"token function\">KB<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1024<\/span>bytes<span class=\"token punctuation\">)<\/span>\u4e3a\u5355\u4f4d\u8f93\u51fa\u3002\n<span class=\"token operator\">-<\/span>m\u6216<span class=\"token operator\">--<\/span>megabytes  \u4ee5MB\u4e3a\u5355\u4f4d\u8f93\u51fa\u3002   \n<span class=\"token operator\">-<\/span>s\u6216<span class=\"token operator\">--<\/span>summarize  \u4ec5\u663e\u793a\u603b\u91cf\uff0c\u53ea\u5217\u51fa\u6700\u540e\u52a0\u603b\u7684\u503c\uff0c\u800c\u4e0d\u5217\u51fa\u6bcf\u4e2a\u4e2a\u522b\u7684\u76ee\u5f55\u5360\u7528\u5bb9\u91cf\u3002\n<span class=\"token operator\">-<\/span>S\u6216<span class=\"token operator\">--<\/span>separate<span class=\"token operator\">-<\/span>dirs   \u4e0d\u5305\u62ec\u5b50\u76ee\u5f55\u4e0b\u7684\u603b\u8ba1\uff0c\u4e0e <span class=\"token operator\">-<\/span>s \u6709\u70b9\u5dee\u522b\n<span class=\"token operator\">-<\/span>h\u6216<span class=\"token operator\">--<\/span>human<span class=\"token operator\">-<\/span>readable  \u4ee5K\uff0cM\uff0cG\u4e3a\u5355\u4f4d\uff0c\u63d0\u9ad8\u4fe1\u606f\u7684\u53ef\u8bfb\u6027\u3002\n<span class=\"token operator\">-<\/span>x\u6216<span class=\"token operator\">--<\/span>one<span class=\"token operator\">-<\/span>file<span class=\"token operator\">-<\/span>xystem  \u4ee5\u4e00\u5f00\u59cb\u5904\u7406\u65f6\u7684\u6587\u4ef6\u7cfb\u7edf\u4e3a\u51c6\uff0c\u82e5\u9047\u4e0a\u5176\u5b83\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u5219\u7565\u8fc7\u3002\n<span class=\"token operator\">-<\/span>L<span class=\"token operator\">&lt;<\/span>\u7b26\u53f7\u94fe\u63a5<span class=\"token operator\">&gt;<\/span>\u6216<span class=\"token operator\">--<\/span>dereference<span class=\"token operator\">&lt;<\/span>\u7b26\u53f7\u94fe\u63a5<span class=\"token operator\">&gt;<\/span> \u663e\u793a\u9009\u9879\u4e2d\u6240\u6307\u5b9a\u7b26\u53f7\u94fe\u63a5\u7684\u6e90\u6587\u4ef6\u5927\u5c0f\u3002   \n<span class=\"token operator\">-<\/span>X<span class=\"token operator\">&lt;<\/span>\u6587\u4ef6<span class=\"token operator\">&gt;<\/span>\u6216<span class=\"token operator\">--<\/span>exclude<span class=\"token operator\">-<\/span>from<span class=\"token operator\">=<\/span><span class=\"token operator\">&lt;<\/span>\u6587\u4ef6<span class=\"token operator\">&gt;<\/span>  \u5728<span class=\"token operator\">&lt;<\/span>\u6587\u4ef6<span class=\"token operator\">&gt;<\/span>\u6307\u5b9a\u76ee\u5f55\u6216\u6587\u4ef6\u3002   \n<span class=\"token operator\">--<\/span>exclude<span class=\"token operator\">=<\/span><span class=\"token operator\">&lt;<\/span>\u76ee\u5f55\u6216\u6587\u4ef6<span class=\"token operator\">&gt;<\/span>         \u7565\u8fc7\u6307\u5b9a\u7684\u76ee\u5f55\u6216\u6587\u4ef6\u3002    \n<span class=\"token operator\">-<\/span>D\u6216<span class=\"token operator\">--<\/span>dereference<span class=\"token operator\">-<\/span>args   \u663e\u793a\u6307\u5b9a\u7b26\u53f7\u94fe\u63a5\u7684\u6e90\u6587\u4ef6\u5927\u5c0f\u3002   \n<span class=\"token operator\">-<\/span>H\u6216<span class=\"token operator\">--<\/span>si  \u4e0e<span class=\"token operator\">-<\/span>h\u53c2\u6570\u76f8\u540c\uff0c\u4f46\u662fK\uff0cM\uff0cG\u662f\u4ee5<span class=\"token number\">1000<\/span>\u4e3a\u6362\u7b97\u5355\u4f4d\u3002   \n<span class=\"token operator\">-<\/span>l\u6216<span class=\"token operator\">--<\/span>count<span class=\"token operator\">-<\/span>links   \u91cd\u590d\u8ba1\u7b97\u786c\u4ef6\u94fe\u63a5\u7684\u6587\u4ef6\u3002   \n<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>df \u663e\u793a\u78c1\u76d8\u5206\u533a\u4e0a\u53ef\u4ee5\u4f7f\u7528\u7684\u78c1\u76d8\u7a7a\u95f4,\u4f7f\u7528\u683c\u5f0f\uff1adf [\u9009\u9879] [\u6587\u4ef6]<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u663e\u793a\u6307\u5b9a\u78c1\u76d8\u6587\u4ef6\u7684\u53ef\u7528\u7a7a\u95f4\u3002\u5982\u679c\u6ca1\u6709\u6587\u4ef6\u540d\u88ab\u6307\u5b9a\uff0c\u5219\u6240\u6709\u5f53\u524d\u88ab\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u53ef\u7528\u7a7a\u95f4\u5c06\u88ab\u663e\u793a\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u78c1\u76d8\u7a7a\u95f4\u5c06\u4ee5 1KB\u4e3a\u5355\u4f4d\u8fdb\u884c\u663e\u793a\uff0c\u9664\u975e\u73af\u5883\u53d8\u91cf POSIXLY_CORRECT \u88ab\u6307\u5b9a\uff0c\u90a3\u6837\u5c06\u4ee5512\u5b57\u8282\u4e3a\u5355\u4f4d\u8fdb\u884c\u663e\u793a\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"prism language-c\"><span class=\"token operator\">-<\/span>a \u5217\u51fa\u6240\u6709\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u5305\u62ec\u7cfb\u7edf\u7279\u6709\u7684 <span class=\"token operator\">\/<\/span>proc \u7b49\u6587\u4ef6\u7cfb\u7edf\n<span class=\"token operator\">-<\/span>k \u4ee5 KBytes \u7684\u5bb9\u91cf\u663e\u793a\u5404\u6587\u4ef6\u7cfb\u7edf\u3002\u547d\u4ee4 df <span class=\"token operator\">-<\/span>k \u540c\u547d\u4ee4 df\n<span class=\"token operator\">-<\/span>m \u4ee5 MBytes \u7684\u5bb9\u91cf\u663e\u793a\u5404\u6587\u4ef6\u7cfb\u7edf\n\n<span class=\"token operator\">-<\/span>h \u4ee5\u4eba\u4eec\u8f83\u6613\u9605\u8bfb\u7684 GBytes\u3001MBytes\u3001KBytes \u7b49\u683c\u5f0f\u81ea\u884c\u663e\u793a\n<span class=\"token operator\">-<\/span>H \u7b49\u4e8e\u201c<span class=\"token operator\">-<\/span>h\u201d\uff0c\u4f46\u662f\u8ba1\u7b97\u5f0f\uff0c<span class=\"token number\">1<\/span>K<span class=\"token operator\">=<\/span><span class=\"token number\">1000<\/span>\uff0c\u800c\u4e0d\u662f<span class=\"token number\">1<\/span>K<span class=\"token operator\">=<\/span><span class=\"token number\">1024<\/span>\n<span class=\"token operator\">-<\/span>i \u4e0d\u7528\u78c1\u76d8\u5bb9\u91cf\uff0c\u800c\u4ee5 inode \u7684\u6570\u91cf\u6765\u663e\u793a\n<span class=\"token operator\">-<\/span>l \u53ea\u663e\u793a\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\u3002\u547d\u4ee4 df <span class=\"token operator\">-<\/span>l \u540c\u547d\u4ee4 df\n<span class=\"token operator\">-<\/span>T  \u8fde\u540c\u8be5\u78c1\u76d8\u5206\u533a\u7684\u6587\u4ef6\u7cfb\u7edf\u540d\u79f0\uff08\u4f8b\u5982 xfs\uff09\u4e5f\u5217\u51fa\n<span class=\"token operator\">--<\/span>block<span class=\"token operator\">-<\/span>size<span class=\"token operator\">=<\/span><span class=\"token operator\">&lt;<\/span>\u533a\u5757\u5927\u5c0f<span class=\"token operator\">&gt;<\/span> \u6307\u5b9a\u533a\u5757\u5927\u5c0f\n<span class=\"token operator\">-<\/span>t <span class=\"token operator\">&lt;<\/span>\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b<span class=\"token operator\">&gt;<\/span> \u53ea\u663e\u793a\u9009\u5b9a\u6587\u4ef6\u7cfb\u7edf\u7684\u78c1\u76d8\u4fe1\u606f\n<span class=\"token operator\">-<\/span>x <span class=\"token operator\">&lt;<\/span>\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b<span class=\"token operator\">&gt;<\/span> \u4e0d\u663e\u793a\u9009\u5b9a\u6587\u4ef6\u7cfb\u7edf\u7684\u78c1\u76d8\u4fe1\u606f\n<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>du\u548cdf\u533a\u522b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>du \u662f\u901a\u8fc7\u641c\u7d22\u6587\u4ef6\u6765\u8ba1\u7b97\u6bcf\u4e2a\u6587\u4ef6\u7684\u5927\u5c0f\u7136\u540e\u7d2f\u52a0\uff0cdu\u6240\u8ba1\u7b97\u7684\u6587\u4ef6\u662f\u5f53\u524d\u5b58\u5728\u4e3a\u88ab\u5220\u9664\u7684\u3002\u800cdf \u901a\u8fc7\u6587\u4ef6\u7cfb\u7edf\u6765\u5feb\u901f\u83b7\u53d6\u7a7a\u95f4\u5927\u5c0f\u7684\u4fe1\u606f\uff0c\u5f53\u6211\u4eec\u5220\u9664\u4e00\u4e2a\u6587\u4ef6\u7684\u65f6\u5019\uff0c\u8fd9\u4e2a\u6587\u4ef6\u4e0d\u662f\u9a6c\u4e0a\u5c31\u5728\u6587\u4ef6\u7cfb\u7edf\u5f53\u4e2d\u6d88\u5931\u4e86\uff0c\u800c\u662f\u6682\u65f6\u6d88\u5931\u4e86\uff0c\u5f53\u6240\u6709\u7a0b\u5e8f\u90fd\u4e0d\u7528\u65f6\uff0c\u624d\u4f1a\u6839\u636eOS\u7684\u89c4\u5219\u91ca\u653e\u6389\u5df2\u7ecf\u5220\u9664\u7684\u6587\u4ef6linux\u5b66\u4e60\u89c6\u9891\uff0cdf\u8ba1\u7b97\u7684\u662f\u901a\u8fc7\u6587\u4ef6\u7cfb\u7edf\u83b7\u53d6\u5230\u7684\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u4e25\u683c\u610f\u4e49\u4e0a\u8bf4df\u6bd4du\u8ba1\u7b97\u7684\u66f4\u4e3a\u7cbe\u786e\uff0c\u5f53\u6587\u4ef6\u7cfb\u7edf\u4e5f\u786e\u5b9a\u5220\u9664\u4e86\u8be5\u6587\u4ef6\u540e<strong>linux\u7cfb\u7edf\u547d\u4ee4topfree\u7684\u4f7f\u7528\u53ca\u53c2\u6570\u8be6\u89e3<\/strong>\uff0c\u8fd9\u65f6\u5019du\u4e0edf\u5c31\u4e00\u81f4\u4e86\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4ee5\u4e0a\u5f15JMW1407<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>free\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>free\u6307\u4ee4\u4f1a\u663e\u793a\u5185\u5b58\u7684\u4f7f\u7528\u60c5\u51b5\uff0c\u5305\u62ec\u5b9e\u4f53\u5185\u5b58\uff0c\u865a\u62df\u7684\u4ea4\u6362\u6587\u4ef6\u5185\u5b58\uff0c\u5171\u4eab\u5185\u5b58\u533a\u6bb5\uff0c\u4ee5\u53ca\u7cfb\u7edf\u6838\u5fc3\u4f7f\u7528\u7684\u7f13\u51b2\u533a\u7b49\uff0c\u4f7f\u7528\u683c\u5f0f\u4e3a\uff1afree [-bkmhotV][-s ]<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u547d\u4ee4\u53c2\u6570\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"prism language-c\"><span class=\"token operator\">-<\/span>b \u3000\u4ee5Byte\u4e3a\u5355\u4f4d\u663e\u793a\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u3002\n<span class=\"token operator\">-<\/span>k \u3000\u4ee5KB\u4e3a\u5355\u4f4d\u663e\u793a\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u3002\n<span class=\"token operator\">-<\/span>m \u3000\u4ee5MB\u4e3a\u5355\u4f4d\u663e\u793a\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u3002\n<span class=\"token operator\">-<\/span>h \u3000\u4ee5\u5408\u9002\u7684\u5355\u4f4d\u663e\u793a\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\uff0c\u6700\u5927\u4e3a\u4e09\u4f4d\u6570\uff0c\u81ea\u52a8\u8ba1\u7b97\u5bf9\u5e94\u7684\u5355\u4f4d\u503c\u3002\u5355\u4f4d\u6709\uff1aB <span class=\"token operator\">=<\/span> bytesK <span class=\"token operator\">=<\/span> kilosM <span class=\"token operator\">=<\/span> megasG <span class=\"token operator\">=<\/span> gigasT <span class=\"token operator\">=<\/span> teras<span class=\"token operator\">-<\/span>o \u3000\u4e0d\u663e\u793a\u7f13\u51b2\u533a\u8c03\u8282\u5217\u3002\n<span class=\"token operator\">-<\/span>s<span class=\"token operator\">&lt;<\/span>\u95f4\u9694\u79d2\u6570<span class=\"token operator\">&gt;<\/span> \u3000\u6301\u7eed\u89c2\u5bdf\u5185\u5b58\u4f7f\u7528\u72b6\u51b5\u3002\n<span class=\"token operator\">-<\/span>t \u3000\u663e\u793a\u5185\u5b58\u603b\u548c\u5217\u3002\n<span class=\"token operator\">-<\/span>V \u3000\u663e\u793a\u7248\u672c\u4fe1\u606f\u3002<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u53c2\u6570\u542b\u4e49\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre><code class=\"prism language-c\">\nMem\u884c\uff08\u5355\u4f4d\u5747\u4e3aM\uff09\uff1atotal   \u7cfb\u7edf\u603b\u7684\u53ef\u7528\u7269\u7406\u5185\u5b58\u5927\u5c0fused    \u5df2\u88ab\u4f7f\u7528\u7684\u7269\u7406\u5185\u5b58\u5927\u5c0ffree    \u8fd8\u6709\u591a\u5c11\u7269\u7406\u5185\u5b58\u53ef\u7528shared  \u88ab\u5171\u4eab\u4f7f\u7528\u7684\u7269\u7406\u5185\u5b58\u5927\u5c0fbuff<span class=\"token operator\">\/<\/span>cache  \u88ab buffer \u548c cache \u4f7f\u7528\u7684\u7269\u7406\u5185\u5b58\u5927\u5c0favailable   \u8fd8\u53ef\u4ee5\u88ab \u5e94\u7528\u7a0b\u5e8f \u4f7f\u7528\u7684\u7269\u7406\u5185\u5b58\u5927\u5c0f<span class=\"token punctuation\">(<\/span><span class=\"token operator\">-<\/span><span class=\"token operator\">\/<\/span><span class=\"token operator\">+<\/span> buffers<span class=\"token operator\">\/<\/span>cache<span class=\"token punctuation\">)<\/span>\u884c\uff1a\uff08<span class=\"token operator\">-<\/span>buffers<span class=\"token operator\">\/<\/span>cache\uff09<span class=\"token operator\">:<\/span> \u771f\u6b63\u4f7f\u7528\u7684\u5185\u5b58\u6570\uff0c\u6307\u7684\u662f\u7b2c\u4e00\u90e8\u5206\u7684 used <span class=\"token operator\">-<\/span> buffers <span class=\"token operator\">-<\/span> cached\uff08<span class=\"token operator\">+<\/span>buffers<span class=\"token operator\">\/<\/span>cache\uff09<span class=\"token operator\">:<\/span> \u53ef\u7528\u7684\u5185\u5b58\u6570\uff0c\u6307\u7684\u662f\u7b2c\u4e00\u90e8\u5206\u7684 free <span class=\"token operator\">+<\/span> buffers <span class=\"token operator\">+<\/span> cachedSwap\u884c\u6307\u4ea4\u6362\u5206\u533a\t\t<\/code><\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8be5\u6587\u4e3a\u6574\u5408\uff0c\u6709\u8bef\u8bf7\u6307\u6b63\uff01<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u53c2\u8003\u5217\u8868\uff1a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u4e0b\u76d1\u63a7\u7c7b\u547d\u4ee4ps\u547d\u4ee4du\u548cdffree\u547d\u4ee4linux\u7cfb\u7edf\u5982\u4f55\u67e5\u770b\u5185\u5b58\uff1a\u6587\u4e2d\u7b2c\u56db\u9879top\u547d\u4ee4\u3002top\u547d\u4ee4\u662f\u4e00\u4e2a\u529f\u80fd\u5341\u5206\u5f3a\u5927\u7684\u76d1\u63a7\u7cfb\u7edf\u7684\u5de5\u5177\uff0c\u5bf9\u4e8e\u7cfb\u7edf\u7ba1\u7406\u5458\u800c\u8a00\u5c24\u5176\u91cd\u8981\u3002\u4f7f\u7528top\u547d\u4ee4\u53ef\u4ee5\u76d1\u89c6\u6307\u5b9a\u7528\u6237\uff0c\u7f3a\u7701\u60c5\u51b5\u662f\u76d1\u89c6\u6240\u6709\u7528\u6237\u7684\u8fdb\u7a0b\u3002\u5e38\u89c1\u4f7f\u7528\u573a\u666f\u4e00\uff1a\u627e\u51fa\u7535\u8111\u4e2d\u7684\u67d0\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u914d\u5408kill\u547d\u4ee4\uff0c\u7ed3\u675f\u8be5\u8fdb\u7a0b\u5982\u679c\u6ca1\u6709\u6587\u4ef6\u540d\u88ab\u6307\u5b9a\uff0c\u5219\u6240\u6709\u5f53\u524d\u88ab\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u53ef\u7528\u7a7a\u95f4\u5c06\u88ab\u663e\u793a\u3002<\/p>\n","protected":false},"author":1,"featured_media":10835,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[147,23,145,146,53],"class_list":["post-10834","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-csj","tag-lxt","tag-p-3","tag-t-2","tag-mlms"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/10834","targetHints":{"allow":["GET"]}}],"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=10834"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/10834\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media\/10835"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=10834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=10834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=10834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}