{"id":1357,"date":"2019-04-27T11:57:50","date_gmt":"2019-04-27T03:57:50","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1357"},"modified":"2022-05-09T18:36:34","modified_gmt":"2022-05-09T10:36:34","slug":"du","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/du","title":{"rendered":"du\u547d\u4ee4 – \u67e5\u770b\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u5927\u5c0f"},"content":{"rendered":"\n
du\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cDisk Usage\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u67e5\u770b\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u5927\u5c0f\u3002\u4eba\u4eec\u7ecf\u5e38\u4f1a\u628adf\u548cdu\u547d\u4ee4\u6df7\u6dc6\uff0cdf\u662f\u7528\u4e8e\u67e5\u770b\u78c1\u76d8\u6216\u5206\u533a\u4f7f\u7528\u60c5\u51b5\u7684\u547d\u4ee4\uff0c\u800cdu\u547d\u4ee4\u5219\u662f\u7528\u4e8e\u6309\u7167\u6307\u5b9a\u5bb9\u91cf\u5355\u4f4d\u6765\u67e5\u770b\u6587\u4ef6\u6216\u76ee\u5f55\u5728\u78c1\u76d8\u4e2d\u7684\u5360\u7528\u60c5\u51b5\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>du [\u53c2\u6570] \u6587\u4ef6<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a\ufeff<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b\ufeff<\/strong><\/p>\n\n\n\n \u4ee5\u6613\u8bfb\u7684\u5bb9\u91cf\u683c\u5f0f\u663e\u793a\u6307\u5b9a\u76ee\u5f55\u5185\u5404\u4e2a\u6587\u4ef6\u7684\u5927\u5c0f\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u4ee5\u6613\u8bfb\u7684\u5bb9\u91cf\u683c\u5f0f\u663e\u793a\u6307\u5b9a\u76ee\u5f55\u5185\u603b\u6587\u4ef6\u7684\u5927\u5c0f\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u663e\u793a\u6307\u5b9a\u6587\u4ef6\u7684\u5927\u5c0f\u4fe1\u606f\uff08\u9ed8\u8ba4\u5355\u4f4d\u4e3aK\uff09\uff1a<\/p>\n\n\n\n du\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cDisk Usage\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u67e5\u770b\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u5927\u5c0f\u3002\u4eba\u4eec\u7ecf\u5e38\u4f1a\u628adf\u548cdu […]<\/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\/1357"}],"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=1357"}],"version-history":[{"count":11,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1357\/revisions"}],"predecessor-version":[{"id":9395,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1357\/revisions\/9395"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-a<\/td> \u663e\u793a\u76ee\u5f55\u4e2d\u6240\u6709\u6587\u4ef6\u5927\u5c0f <\/td><\/tr> -k<\/td> \u4ee5KB\u4e3a\u5355\u4f4d\u663e\u793a\u6587\u4ef6\u5927\u5c0f <\/td><\/tr> -m<\/td> \u4ee5MB\u4e3a\u5355\u4f4d\u663e\u793a\u6587\u4ef6\u5927\u5c0f <\/td><\/tr> -g<\/td> \u4ee5GB\u4e3a\u5355\u4f4d\u663e\u793a\u6587\u4ef6\u5927\u5c0f <\/td><\/tr> -h<\/td> \u4ee5\u6613\u8bfb\u65b9\u5f0f\u663e\u793a\u6587\u4ef6\u5927\u5c0f<\/td><\/tr> -s<\/td> \u4ec5\u663e\u793a\u603b\u8ba1 <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# du -h \/etc<\/strong>\n28K\t\/etc\/dnf\/modules.d\n20K\t\/etc\/dnf\/plugins\n12K\t\/etc\/dnf\/protected.d\n64K\t\/etc\/dnf\n16K\t\/etc\/fonts\/conf.d\n20K\t\/etc\/fonts\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
[root@linuxcool ~]# du -sh \/etc <\/strong>\n29M\t\/etc<\/pre>\n\n\n\n
[root@linuxcool ~]# du anaconda-ks.cfg <\/strong>\n4\tanaconda-ks.cfg\n<\/pre>\n","protected":false},"excerpt":{"rendered":"