删除5天前的文件 -exec参数,如果查找有返回,可在exec参数后加上需要操作的命令,查找结果用{}来代替 find /var/log/hive/ -name "*" -mtime +5 -exec rm -rfv {} \;