当我使用
crontab -l
和crontab -e
我重新安排了我的 cron 计时,但发现它们仍在前一个时间间隔内触发。
然后我发现了/etc/cron.d/
包含先前调度的cron 格式文件,现在我假设这些文件cron
正在服从。
所以我想编辑这些,并从主 crontab 中删除多余的“屏蔽”行,但用法crontab
是:
usage: crontab [-u user] file
crontab [-u user] { -e | -l | -r }
Run Code Online (Sandbox Code Playgroud)
因此,使用-l
或-e
似乎与指定文件互斥。
编辑文件的正确方法是什么/etc/cron.d/*
?