查看当前目录下所有子目录的大小
[devl@xungen toolkit]$ du -h192K./dbimport/obj/src196K./dbimport/obj40K./dbimport/src244K./dbimport68K./cppcode/obj/src72K./cppcode/obj12K./cppcode/src92K./cppcode96K./cgientity/obj/src100K./cgientity/obj16K./cgientity/src128K./cgientity224K./dbentity/obj/src228K./dbentity/obj28K./dbentity/src1.3M. du -sh统计当前目录占用空间大小
[devl@xungen ~]$ du -sh699M. du -sh --time *查看当前目录下所有文件与目录的大小与更新时间
129M2019-06-05 20:52application4.0K2019-05-03 19:30config.lua4.0K2019-05-09 14:44configure 21M2019-05-28 20:03cppshell 39M2019-06-01 18:28library4.0K2019-05-28 17:04makefile4.0K2019-05-28 17:04makefile.conf173M2019-06-04 23:09product4.0K2019-05-28 17:04profile.conf700K2019-06-02 19:01publish260K2019-05-01 16:37source8.0K2019-05-09 17:27tensor1.3M2019-06-01 18:28toolkit du -sh * | sort -rh查看当前目录下所有文件与目录的大小并按大小排序倒序输出
[devl@xungen ~]$ du -sh * | sort -rh173Mproduct129Mapplication1.3Mtoolkit700Kpublish8.0Ktensor4.0Kprofile.conf4.0Kmakefile.conf4.0Kmakefile4.0Kconfigure4.0Kconfig.lua 30111997