ZPY博客

centos统计某个文件夹占用空间大小

最最最常用的,记住这一个即可:du -sh *

执行结果如下:

[root@iZbp1g3u73g9nya83ih8itZ storage]# du -sh *
25M     apache-snapshots
2.1G    central
67M     central-m1
425M    central_repository
112K    javamall
2.1G    public
747M    releases
609M    snapshots
874M    spring-release
2.5M    thirdparty