使用crontab跑定时作业,发现邮箱里面有很多垃圾邮件,想要全部删除可以这样做 cd /var/spool/mail echo ''>root 当然你想crontab 不发送邮件可以在cronab头部加上这一句 MAILTO=''