{"id":247554,"date":"2022-07-23T09:19:20","date_gmt":"2022-07-23T01:19:20","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=247554"},"modified":"2022-07-14T16:20:00","modified_gmt":"2022-07-14T08:20:00","slug":"du-ncdu-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/du-ncdu-linux.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528du \u548c ncdu \u4e24\u4e2a\u547d\u4ee4\u68c0\u67e5 Linux \u78c1\u76d8\u4f7f\u7528\u60c5\u51b5\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\ndu \u548c ncdu \u4e24\u4e2a\u547d\u4ee4\u63d0\u4f9b\u4e86\u76f8\u540c\u4fe1\u606f\u7684\u4e24\u79cd\u4e0d\u540c\u89c6\u56fe\uff0c\u4fbf\u4e8e\u6211\u4eec\u8ddf\u8e2a\u5b58\u50a8\u5728\u8ba1\u7b97\u673a\u4e0a\u7684\u5185\u5bb9\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u65e0\u8bba\u4f60\u6709\u591a\u5c11\u5b58\u50a8\u7a7a\u95f4\uff0c\u4e86\u89e3\u6587\u4ef6\u5360\u7528\u4e86\u591a\u5c11\u78c1\u76d8\u7a7a\u95f4\u90fd\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u4e8b\u9879\u3002\u6211\u7684\u7b14\u8bb0\u672c\u6709\u4e00\u4e2a\u76f8\u5bf9\u8f83\u5c0f\u7684 250GB NVME \u9a71\u52a8\u5668\uff0c\u5927\u591a\u6570\u65f6\u5019\u90fd\u6ca1\u4ec0\u4e48\u95ee\u9898\uff0c\u4f46\u51e0\u5e74\u524d\u6211\u5f00\u59cb\u63a2\u7d22 Linux \u4e0a\u7684\u6e38\u620f\uff0c\u60c5\u51b5\u53d8\u5f97\u6709\u6240\u4e0d\u540c\uff0c\u5b89\u88c5 Steam \u548c\u5176\u4ed6\u6e38\u620f\u4f7f\u5b58\u50a8\u7ba1\u7406\u66f4\u52a0\u91cd\u8981\u3002<\/p>\n

du \u547d\u4ee4<\/strong><\/div>\n

\u68c0\u67e5\u78c1\u76d8\u9a71\u52a8\u5668\u4e0a\u5269\u4f59\u5b58\u50a8\u7a7a\u95f4\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u00a0\u200b\u200bdu \u547d\u4ee4\u200b\u200b\u200b\u3002\u5b83\u4f1a\u4f30\u8ba1\u6587\u4ef6\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5\uff0c\u50cf\u5176\u4ed6\u6240\u6709 Linux \u5de5\u5177\u4e00\u6837\uff0c\u200b\u200bdu\u200b\u200b\u200b\u00a0\u975e\u5e38\u5f3a\u5927\uff0c\u4f46\u5b66\u4f1a\u5982\u4f55\u6839\u636e\u4f60\u7684\u7279\u5b9a\u9700\u6c42\u4f7f\u7528\u5b83\u4f1a\u5f88\u6709\u5e2e\u52a9\u3002\u6211\u603b\u662f\u67e5\u9605\u624b\u518c\u9875\u6765\u638c\u63e1\u5b9e\u7528\u7a0b\u5e8f\u7684\u7528\u6cd5\u3002\u200b\u200bdu\u200b\u200b\u00a0\u6709\u51e0\u4e2a\u9009\u9879\uff0c\u53ef\u4ee5\u4e3a\u4f60\u63d0\u4f9b\u6587\u4ef6\u5b58\u50a8\u7684\u6700\u4f73\u5feb\u7167\uff0c\u4ee5\u53ca\u5b83\u4eec\u5728\u7cfb\u7edf\u4e0a\u6d88\u8017\u591a\u5c11\u7a7a\u95f4\u3002
\n\u200b\u200bdu\u200b\u200b\u00a0\u547d\u4ee4\u6709\u5f88\u591a\u9009\u9879\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\uff1a
\n\u200b\u200b-a\u200b- \u5305\u62ec\u6587\u4ef6\u5939\u548c\u6587\u4ef6\u5728\u5185\u7684\u5b58\u50a8\u4fe1\u606f
\n\u200b\u200b--apparent-size- \u6253\u5370\u81ea\u8eab\u5927\u5c0f\u800c\u4e0d\u662f\u5360\u7528\u78c1\u76d8\u91cf
\n\u200b\u200b-h\u200b- \u4eba\u7c7b\u53ef\u8bfb\u7684\u683c\u5f0f
\n-b- \u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d
\n\u200b\u200b-c\u200b- \u603b\u8ba1
\n\u200b\u200b-k- \u4ee5\u5757\u4e3a\u5355\u4f4d
\n\u200b-m\u200b\u00a0- \u4ee5\u5146\u5b57\u8282\u4e3a\u5355\u4f4d\u7684\u5927\u5c0f
\n\u52a1\u5fc5\u67e5\u770b\u00a0\u200b\u200bdu\u200b\u200b\u00a0\u624b\u518c\u9875\u83b7\u53d6\u5b8c\u6574\u5e2e\u52a9\u5217\u8868\u3002<\/p>\n

\u663e\u793a\u6240\u6709\u6587\u4ef6<\/strong><\/span><\/div>\n

\u4f60\u53ef\u4ee5\u9009\u62e9\u7684\u7b2c\u4e00\u4e2a\u9009\u9879\u662f\u00a0\u200b\u200bdu -a\u200b\u200b\u200b\uff0c\u5b83\u53ef\u4ee5\u663e\u793a\u7cfb\u7edf\u4e0a\u6240\u6709\u6587\u4ef6\u53ca\u5176\u5b58\u50a8\u76ee\u5f55\u7684\u5927\u5c0f\u3002\u8fd9\u4e2a\u547d\u4ee4\u8ba9\u6211\u77e5\u9053\u4e86\u6211\u7684\u4e3b\u76ee\u5f55\u4e2d\u5b58\u50a8\u4e86 11555168 \u4e2a\u5b57\u8282\u3002\u4f7f\u7528\u00a0\u200b\u200bdu -a\u200b\u200b\u00a0\u53ef\u4ee5\u5feb\u901f\u9012\u5f52\u5730\u67e5\u770b\u6211\u7684\u5b58\u50a8\u7cfb\u7edf\u3002\u5982\u679c\u6211\u60f3\u8981\u4e00\u4e2a\u66f4\u6709\u610f\u4e49\u7684\u6570\u5b57\uff0c\u5e76\u4e14\u6211\u60f3\u6df1\u5165\u5230\u76ee\u5f55\u4e2d\u67e5\u770b\u5927\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u8be5\u600e\u4e48\u529e\uff1f<\/p>\n

\u6211\u8ba4\u4e3a\u5728\u00a0\u200b\u200bDownloads\u200b\u200b\u200b\u00a0\u76ee\u5f55\u4e0b\u6709\u4e00\u4e9b\u5927\u6587\u4ef6\uff0c\u6240\u4ee5\u6211\u8f93\u5165\u00a0\u200b\u200bdu -a \/home\/don\/Downloads\u200b\u200b\u00a0\u6765\u67e5\u770b\u3002<\/p>\n

\u6700\u5de6\u8fb9\u7684\u6570\u5b57\u662f\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u7684\u6587\u4ef6\u5927\u5c0f\u3002\u6211\u60f3\u8981\u4e00\u4e9b\u5bf9\u6211\u66f4\u6709\u5e2e\u52a9\u7684\u4e1c\u897f\uff0c\u6240\u4ee5\u6211\u5c06\u4eba\u7c7b\u53ef\u8bfb\u683c\u5f0f\u7684\u9009\u9879\u6dfb\u52a0\u5230\u547d\u4ee4\u4e2d\uff0c\u7ed3\u679c\u662f 456M\uff08\u5146\u5b57\u8282\uff09\uff0c\u8fd9\u5bf9\u6211\u6765\u8bf4\u662f\u4e00\u79cd\u66f4\u6709\u7528\u7684\u6570\u5b57\u683c\u5f0f\u3002<\/p>\n

\u4e0e\u5927\u591a\u6570 Linux \u547d\u4ee4\u4e00\u6837\uff0c\u4f60\u53ef\u4ee5\u7ec4\u5408\u9009\u9879\uff0c\u8981\u4ee5\u4eba\u7c7b\u53ef\u8bfb\u7684\u683c\u5f0f\u67e5\u770b\u00a0\u200b\u200bDownloads\u200b\u200b\u200b\u00a0\u76ee\u5f55\uff0c\u4f7f\u7528\u00a0\u200b\u200bdu -ah ~\/Downloads\u200b\u200b\u00a0\u547d\u4ee4\u3002<\/p>\n

\u603b\u548c<\/strong><\/span><\/div>\n

\u200b\u200b-c\u200b\u200b\u200b \u9009\u9879\u5728\u6700\u540e\u4e00\u884c\u63d0\u4f9b\u4e86\u78c1\u76d8\u4f7f\u7528\u603b\u548c\u3002\u6211\u53ef\u4ee5\u4f7f\u7528 \u200b\u200bdu -ch \/home\/don\u200b\u200b\u200b \u6765\u663e\u793a\u4e3b\u76ee\u5f55\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\u3002\u8fd9\u91cc\u6709\u5f88\u591a\u4fe1\u606f\uff0c\u6211\u53ea\u60f3\u77e5\u9053\u6700\u540e\u4e00\u884c\u7684\u4fe1\u606f\uff0c\u6240\u4ee5\u6211\u5c06 \u200b\u200bdu\u200b\u200b\u200b \u547d\u4ee4\u901a\u8fc7\u7ba1\u9053\u4f20\u8f93\u7ed9 \u200b\u200btail\u200b\u200b\u200b \u6765\u663e\u793a\u6700\u540e\u51e0\u884c\u3002\u547d\u4ee4\u662f \u200b\u200bdu -ch \/home\/don | tail\u200b\u200b\u200b\u3002\uff08LCTT \u6821\u6ce8\uff1a\u53ef\u4ee5\u4f7f\u7528 \u200b\u200btail -1\u200b\u200b \u6765\u4ec5\u663e\u793a\u6700\u540e\u4e00\u884c\u6c47\u603b\u884c\u3002\uff09<\/p>\n

\"\"<\/p>\n

ncdu \u547d\u4ee4<\/strong><\/div>\n

\u5bf9\u5b58\u50a8\u5728\u9a71\u52a8\u5668\u4e0a\u5185\u5bb9\u611f\u5174\u8da3\u7684 Linux \u7528\u6237\uff0c\u53e6\u4e00\u4e2a\u9009\u62e9\u662f\u00a0\u200b\u200bncdu \u547d\u4ee4\u200b\u200b\uff0c\u5b83\u4ee3\u8868 \u201cNCurses \u78c1\u76d8\u4f7f\u7528\u60c5\u51b5\u201d\u3002\u57fa\u4e8e\u4f60\u7684 Linux \u53d1\u884c\u7248\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5b83\u3002<\/p>\n

\u5728 Linux Mint\u3001Elementary\u3001Pop_OS! \u6216\u5176\u5b83\u57fa\u4e8e Debian \u7684\u53d1\u884c\u7248\u4e0a\uff1a<\/p>\n

\u5728 Fedora\u3001Mageia \u6216 CentOS \u4e0a\uff1a<\/p>\n

\u5728 Arch\u3001Manjar \u6216\u8005\u7c7b\u4f3c\u53d1\u884c\u7248\u4e0a\uff1a<\/p>\n

\u5b89\u88c5\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u00a0\u200b\u200bncdu\u200b\u200b\u200b\u00a0\u6765\u5206\u6790\u4f60\u7684\u6587\u4ef6\u7cfb\u7edf\u3002\u4ee5\u4e0b\u662f\u5728\u6211\u7684\u4e3b\u76ee\u5f55\u4e2d\u53d1\u51fa\u00a0\u200b\u200bncdu\u200b\u200b\u200b\u00a0\u540e\u7684\u793a\u4f8b\u8f93\u51fa\u3002\u200b\u200bncdu\u200b\u200b\u200b\u00a0\u7684\u624b\u518c\u9875\u6307\u51fa \u201cncdu\uff08NCurses Disk Usage\uff09\u662f\u4f17\u6240\u5468\u77e5\u7684\u00a0\u200b\u200bdu\u200b\u200b\u00a0\u57fa\u4e8e curses \u7684\u7248\u672c\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u5feb\u901f\u67e5\u770b\u54ea\u4e9b\u76ee\u5f55\u6b63\u5728\u4f7f\u7528\u78c1\u76d8\u7a7a\u95f4\u7684\u65b9\u6cd5\u3002\u201d<\/p>\n

\"\"<\/p>\n

\u6211\u53ef\u4ee5\u4f7f\u7528\u65b9\u5411\u952e\u4e0a\u4e0b\u5bfc\u822a\uff0c\u6309\u4e0b\u56de\u8f66\u952e\u8fdb\u5165\u76ee\u5f55\u3002\u6709\u8da3\u7684\u662f\uff0c\u200b\u200bdu\u200b\u200b\u200b\u00a0\u62a5\u544a\u6211\u7684\u4e3b\u76ee\u5f55\u4e2d\u7684\u603b\u78c1\u76d8\u4f7f\u7528\u91cf\u4e3a 12GB\uff0c\u800c\u00a0\u200b\u200bncdu\u200b\u200b\u200b\u00a0\u663e\u793a\u4e3a 11GB\u3002\u4f60\u53ef\u4ee5\u5728\u00a0\u200b\u200bncdu\u200b\u200b\u00a0\u624b\u518c\u9875\u4e2d\u627e\u5230\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n

\u4f60\u53ef\u4ee5\u5c06\u00a0\u200b\u200bncdu\u200b\u200b\u200b\u00a0\u6307\u5411\u67d0\u4e2a\u76ee\u5f55\u6765\u63a2\u7d22\u7279\u5b9a\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u200b\u200bncdu \/home\/don\/Downloads\u200b\u200b\u3002<\/p>\n

\"\"<\/p>\n

\u6309\u00a0\u200b\u200b?\u200b\u200b\u00a0\u952e\u663e\u793a\u5e2e\u52a9\u83dc\u5355\u3002<\/p>\n

\"\"<\/p>\n

\u603b\u7ed3<\/strong><\/div>\n

\u200b\u200bdu\u200b\u200b\u200b\u00a0\u548c\u00a0\u200b\u200bncdu\u200b\u200b\u00a0\u4e24\u4e2a\u547d\u4ee4\u63d0\u4f9b\u4e86\u76f8\u540c\u4fe1\u606f\u7684\u4e24\u79cd\u4e0d\u540c\u89c6\u56fe\uff0c\u4fbf\u4e8e\u6211\u4eec\u8ddf\u8e2a\u5b58\u50a8\u5728\u8ba1\u7b97\u673a\u4e0a\u7684\u5185\u5bb9\u3002<\/p>\n

\u5982\u679c\u4f60\u4e0d\u4e60\u60ef\u4f7f\u7528\u7ec8\u7aef\uff0c\u6216\u8005\u60f3\u5bfb\u627e\u6b64\u7c7b\u4fe1\u606f\u7684\u53e6\u4e00\u79cd\u67e5\u770b\u65b9\u5f0f\uff0c\u53ef\u4ee5\u770b\u770b\u00a0\u200b\u200bGNOME \u78c1\u76d8\u4f7f\u7528\u5206\u6790\u5668\u200b\u200b\u3002\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u4e0a\u8fd8\u6ca1\u6709\u5b83\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u548c\u4f7f\u7528\u5b83\u3002\u68c0\u67e5\u4f60\u7684\u53d1\u884c\u7248\u662f\u5426\u6709 baobab \u5f00\u53d1\u7684\u8fd9\u4e2a\u8f6f\u4ef6\uff0c\u5982\u679c\u4f60\u60f3\u8bd5\u8bd5\uff0c\u90a3\u5c31\u53bb\u5b89\u88c5\u5b83\u5427\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u65e0\u8bba\u4f60\u6709\u591a\u5c11\u5b58\u50a8\u7a7a\u95f4\uff0c\u4e86\u89e3\u6587\u4ef6\u5360\u7528\u4e86\u591a\u5c11\u78c1\u76d8\u7a7a\u95f4\u90fd\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u4e8b\u9879\u3002\u6211\u7684\u7b14\u8bb0\u672c\u6709\u4e00\u4e2a\u76f8\u5bf9\u8f83\u5c0f\u7684 250GB […]<\/p>\n","protected":false},"author":323,"featured_media":243343,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-247554","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/247554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=247554"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/247554\/revisions"}],"predecessor-version":[{"id":247564,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/247554\/revisions\/247564"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/243343"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=247554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=247554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=247554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}