linux 自动删除7天前的日志

find /var/log/ -mtime +7 -name "*.log" -exec rm -rf {} \;