排查inode被打满的问题

查看根分区下哪个目录文件数最多

for i in /*; do echo $i; find $i | wc -l; done

如果是export的可以根据export的目录一级一级查询下去

for i in /export/*; do echo $i; find $i | wc -l; done

删除文件,文件数过多,通配符不好直接删除,使用find

find /export/Logs/aaa -mtime +1 -delete
posted @   SpecialSpeculator  阅读(48)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示