1、删除指定日期前的文件 find . -ctime +3 -type f | xargs rm -rf 2、查看文件大小 du -sh filename 3、查看目录大小并排序 du -sh * | sort -n