linux查找当前开始30天之前的文件并删除

转载来自bug:

find /mnt/sd11 -type f -mtime +30 -exec rm {} \;

find /mnt/sd11/mysql_bak -type f -name "*.gz" -mtime +30 -exec rm {} \;

猜你喜欢

转载自blog.csdn.net/qq_35440040/article/details/86576864