📜  如何检查 crontab 列表 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:05.553000             🧑  作者: Mango

代码示例1
To list all scheduled cron jobs for the current user : crontab –l
To display contents of the root user’s crontab : less /etc/crontab
To list cron jobs that belong to a specific user : sudo crontab –u username –l
To list hourly cron jobs : ls –la /etc/cron.hourly
To list daily cron jobs : ls –la /etc/cron.daily
To display weekly cron jobs : ls –la /etc/cron.weekly
To display monthly cron jobs : ls –la /etc/cron.monthly