Linux下查看文件、目录、磁盘占用的大小

ls alh

列出当前目录所有文件的大小

find ./ type f size +10M print0 | xargs 0 ls lh | sort nr

过滤当前目录下大于10M的文件

 

du sh

当前目录的大小

du sh *

当前目录下各目录大小

du ah

递归查询当前目录所有文件夹大小

df lh

磁盘占用

Leave a reply

Your email address will not be published. Required fields are marked *