vim rm.sh find / -size +sizeMB > /tpm/rmfile for $name in then rm -rf $name if [ $? -eq 0 ] echo "at $(date) rm $name" fi done < /tpm/rmfile crontab -e */15 */24 * * * bash rm.sh 表示每天24:15执行一下此脚本 有bug你的调试一下
[quote=引用 2 楼 weixin_38309584 的回复:] [quote=引用 1 楼 q3733353520 的回复:] 百度搜索 linux定时任务crontab
[quote=引用 1 楼 q3733353520 的回复:] 百度搜索 linux定时任务crontab
百度搜索 linux定时任务crontab
19,610
社区成员
74,604
社区内容
加载中
试试用AI创作助手写篇文章吧