小编Ste*_*art的帖子

如何正确编辑 /etc/cron.d/* 文件?

当我使用

  • 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/*

linux cron

4
推荐指数
1
解决办法
5971
查看次数

标签 统计

cron ×1

linux ×1