linux crontab -e修改定时任务时遇到crontab: edits left in /tmp/crontab.xxx

如题,在使用crontab -e修改定时任务时遇到crontab: edits left in /tmp/crontab.xxx问题:
image.png

已使用root修改,并且重启crontab,重启linux都无法使用vim直接修改定时任务。

此时若只有需要修改的定时任务,可以查阅并清除所有定时任务,重新crontab -e定制一个定时任务。

# 查询所有定时任务
crontab -l 
# 清除所有定时任务
crontab -r

评论

暂无评论