📌  相关文章
📜  如何检查 cron 是否正在运行 - Shell-Bash 代码示例

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

代码示例1
$ systemctl status cron              # checks if cron is running

$ sudo systemctl enable cron.service # enable cron to run on boot
$ sudo systemctl start cron.service  # start cron now

$ sudo crontab -l                    # show all currently running cron jobs 
$ sudo crontab -u panda -l           # show all cron jobs running for user panda