{"id":2960,"date":"2019-09-18T15:14:35","date_gmt":"2019-09-18T07:14:35","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=2960"},"modified":"2019-12-19T23:06:54","modified_gmt":"2019-12-19T15:06:54","slug":"linux%e6%9f%a5%e7%9c%8b%e6%8c%87%e5%ae%9a%e6%96%87%e4%bb%b6%e5%a4%b9%e5%a4%a7%e5%b0%8f%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/2960.html","title":{"rendered":"linux\u67e5\u770b\u6307\u5b9a\u6587\u4ef6\u5939\u5927\u5c0f\u547d\u4ee4du -sh"},"content":{"rendered":"
\u6700\u8fd1\uff0c\u5728\u5b9d\u5854\u9762\u677f\u91cc\u9762\u770b\u5230100G\u7684\u7a7a\u95f4\uff0c\u4f7f\u7528\u7387\u7adf\u7136\u8fbe90%\u591a\uff0c\u4e0a\u9762\u653e\u4e8610\u4e2a\u7f51\u7ad9\uff0c\u53ea\u6709\u4e24\u4e09\u4e2a\u7f51\u7ad9\u6253\u5305\u540e\u67e5\u770b\u4e5f\u5c315G\u591a\u7684\u6837\u5b50\u3002\u6e05\u7a7a\u56de\u6536\u7ad9\u4e5f\u53ea\u662f\u591a\u4e86\u90a3\u4e48\u70b9\u7a7a\u95f4\uff0c\u6240\u4ee5\u53ea\u80fd\u7528SSH\u8fde\u63a5\u670d\u52a1\u5668\u67e5\u770b\u4e86\u3002<\/p>\n linux\u67e5\u770b\u6307\u5b9a\u6587\u4ef6\u5939\u5927\u5c0f\u547d\u4ee4<\/p>\n \u7ecf\u67e5\u770b\uff0c\u7f51\u7ad9\u8fd9\u4e2a\u76ee\u5f55\u5360\u7528\u4e8669G\u7684\u7a7a\u95f4\u3002\uff08\u6ce8\u610f\uff0c\u8f93\u5165\u547d\u4ee4\u540e\uff0c\u5f97\u7b49\u5f85\u5341\u5206\u949f\u624d\u80fd\u663e\u793a\u6587\u4ef6\u5939\u5927\u5c0f\uff0c\u8fd9\u4e2a\u6839\u636e\u4f60\u7f51\u7ad9\u7684\u6587\u4ef6\u6570\u6765\u51b3\u5b9a\u7684\u3002\u6587\u4ef6\u8d8a\u591a\uff0c\u7b49\u5f85\u7684\u65f6\u95f4\u5c31\u8d8a\u957f\u3002\uff09<\/p>\n \u5728\u7f51\u7ad9\u603b\u76ee\u5f55\u4e0b\u67e5\u67d0\u4e2a\u7f51\u7ad9\u7684\u5360\u7528\u7a7a\u95f4<\/p>\n du -sh : \u67e5\u770b\u5f53\u524d\u76ee\u5f55\u603b\u5171\u5360\u7684\u5bb9\u91cf\u3002\u800c\u4e0d\u5355\u72ec\u5217\u51fa\u5404\u5b50\u9879\u5360\u7528\u7684\u5bb9\u91cf<\/p>\n du -lh --max-depth=1 : \u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u4e00\u7ea7\u5b50\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\u5360\u7528\u7684\u78c1\u76d8\u5bb9\u91cf\u3002<\/p>\n du -sh * | sort -n \u7edf\u8ba1\u5f53\u524d\u6587\u4ef6\u5939(\u76ee\u5f55)\u5927\u5c0f\uff0c\u5e76\u6309\u6587\u4ef6\u5927\u5c0f\u6392\u5e8f \u7ecf\u8fc7\u68c0\u6d4b\uff0c\u7ec8\u4e8e\u53d1\u73b0\u4e00\u4e2a\u7f51\u7ad9\u5360\u7528\u7387\u8fbe\u523056G\u3002<\/p>\n<\/a><\/p>\n
du -sh<\/code><\/pre>\n
<\/a><\/p>\n
du -sh www.baishitou.cn<\/code><\/pre>\n
<\/a><\/p>\n
\ndu -sk filename \u67e5\u770b\u6307\u5b9a\u6587\u4ef6\u5927\u5c0f<\/p>\n<\/div>\n<\/div>\n