linux 查看当前文件夹文件大小

(1)ls- lh会以KB、MB等为单位进行显示

(2)du -h –max-depth=0 *,可以只显示直接子目录文件及文件夹大小统计值。

(3)在指定目录下显示10个占用空间最大(最小)的目录或文件最大:[plain] du -sh * | sort -nr | head 最小:[php] du -sh * | sort -n | head

原文地址:https://www.cnblogs.com/countryboy666/p/14414019.html