find的灵活应用—updating

#清除当前目录下最近30天之前的log文件
$find ./ -mtime +30 -name "*.log" -exec rm -rf {} \;

发表评论

您的电子邮箱地址不会被公开。