{"id":11934,"date":"2023-03-19T14:00:46","date_gmt":"2023-03-19T06:00:46","guid":{"rendered":"https:\/\/www.linuxcool.com\/zkwjjdxmlzkd"},"modified":"2023-03-19T14:00:46","modified_gmt":"2023-03-19T06:00:46","slug":"zkwjjdxmlzkd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/zkwjjdxmlzkd","title":{"rendered":"\u67e5\u770b\u6587\u4ef6\u5939\u5927\u5c0f\u547d\u4ee4\uff1a\u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u5404\u4e2a\u6587\u4ef6\u53ca\u76ee\u5f55\u5360\u7528\u7a7a\u95f4\u5927\u5c0f"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>linux\u67e5\u770b\u6587\u4ef6\u5939\u5927\u5c0f<a style='color:#0000CC' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>\uff1a1\u3001\u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u5404\u4e2a\u6587\u4ef6\u53ca\u76ee\u5f55\u5360\u7528\u7a7a\u95f4\u5927\u5c0flinux\u57f9\u8bad\u673a\u6784\uff0c\u547d\u4ee4\u4e3a\u3010du-sh*\u3011\uff1b2\u3001\u67e5\u770b\u67d0\u4e2a\u76ee\u5f55\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u5927\u5c0f<strong>linux\u67e5\u627e\u6587\u4ef6\u5939\u547d\u4ee4<\/strong><strong>linux\u67e5\u627e\u6587\u4ef6\u5939\u547d\u4ee4<\/strong>linux\u5b66\u4e60\u89c6\u9891\uff0c\u547d\u4ee4\u4e3a\u3010du-h--max-depth=1\/data\/home\/lisen\/\u3011\u3002<\/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\/03\/1679205644364_0.jpg' alt='linux more\u547d\u4ee4\u67e5\u627e_linux find\u547d\u4ee4\u67e5\u627e\u5b57\u7b26\u4e32_linux\u67e5\u627e\u6587\u4ef6\u5939\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>linux\u67e5\u770b\u6587\u4ef6\u5939\u5927\u5c0f\u547d\u4ee4\uff1adu\u547d\u4ee4<\/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\/03\/1679205644364_1.jpg' alt='linux find\u547d\u4ee4\u67e5\u627e\u5b57\u7b26\u4e32_linux more\u547d\u4ee4\u67e5\u627e_linux\u67e5\u627e\u6587\u4ef6\u5939\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>1\u3001\u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u5404\u4e2a\u6587\u4ef6\u53ca\u76ee\u5f55\u5360\u7528\u7a7a\u95f4\u5927\u5c0f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:php;toolbar:false\">du -sh *<\/pre>\n<\/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\/03\/1679205644364_2.jpg' alt='linux\u67e5\u627e\u6587\u4ef6\u5939\u547d\u4ee4_linux find\u547d\u4ee4\u67e5\u627e\u5b57\u7b26\u4e32_linux more\u547d\u4ee4\u67e5\u627e' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>2\u3001\u67e5\u770b\u67d0\u4e2a\u76ee\u5f55\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u5927\u5c0f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:php;toolbar:false\">du -h --max-depth=1 \/data\/home\/lisen\/   # depth\u8868\u793a\u53ea\u663e\u793a\u4e00\u5c42\u6587\u4ef6\u5939\u5927\u5c0f\uff0c\u5373\u6df1\u5ea6\u4e3a1<\/pre>\n<\/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\/03\/1679205644364_4.png' alt='9711aeee8f7daa24ab1568d00e931d4.png' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>3\u3001\u67e5\u770b\u67d0\u4e2a\u76ee\u5f55\u7684\u603b\u5927\u5c0f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:php;toolbar:false\">du -sh .\/   # \u67e5\u770b\u5f53\u524d\u76ee\u5f55\u7684\u603b\u5927\u5c0f<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>4\u3001\u67e5\u770b\u67d0\u4e2a\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5927\u5c0f\u5e76\u6392\u5e8f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:php;toolbar:false\">du -sh *|sort -n   # \u8fd9\u4e2a\u4e0d\u80fd\u6b63\u5e38\u6392\u5e8f\uff0c\u9700\u53bb\u6389-h\ndu -s *|sort -n  \ndu -s *|sort -nr   # \u53cd\u5411\u6392\u5e8f\ndu -s *|sort -n |head -5 # \u524d\u4e94\u4e2a\u6700\u5927\u7684\ndu -s *|sort -n |tail -5 # \u540e\u4e94\u4e2a\u6700\u5c0f\u7684<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u76f8\u5173\u5b66\u4e60\u63a8\u8350\uff1alinux\u89c6\u9891\u6559\u7a0b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4ee5\u4e0a\u5c31\u662flinux\u67e5\u770b\u6587\u4ef6\u5939\u5927\u5c0f\u547d\u4ee4\u662f\u54ea\u4e9b\u7684\u8be6\u5c3d\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8php\u82f1\u6587\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/data\/home\/lisen\/\u3011\u3002linux\u67e5\u770b\u6587\u4ef6\u5939\u5927\u5c0f\u547d\u4ee4\uff1adu\u547d\u4ee41\u3001\u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u5404\u4e2a\u6587\u4ef6\u53ca\u76ee\u5f55\u5360\u7528\u7a7a\u95f4\u5927\u5c0f2\u3001\u67e5\u770b\u67d0\u4e2a\u76ee\u5f55\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u5927\u5c0f3\u3001\u67e5\u770b\u67d0\u4e2a\u76ee\u5f55\u7684\u603b\u5927\u5c0f4\u3001\u67e5\u770b\u67d0\u4e2a\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5927\u5c0f\u5e76\u6392\u5e8f\u76f8\u5173\u5b66\u4e60\u63a8\u8350\uff1alinux\u89c6\u9891\u6559\u7a0b\u4ee5\u4e0a\u5c31\u662flinux\u67e5\u770b\u6587\u4ef6\u5939\u5927\u5c0f\u547d\u4ee4\u662f\u4ec0\u4e48\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8php\u4e2d\u6587\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":11935,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[444,27],"class_list":["post-11934","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-lzkwjjdx","tag-wjml"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/11934","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=11934"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/11934\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media\/11935"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=11934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=11934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=11934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}