crontab

Posted buxizhizhoum

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了crontab相关的知识,希望对你有一定的参考价值。

View Users Cronjob
Use the following syntax to view waqleh user‘s cronjob:

crontab -u waqleh -l
View Root User Cronjob
Just type the following command:

crontab -l
This should list the contents of the crontab script.

View /etc/crontab
A cronjob can be also run from /etc/crontab file. To view it, enter:

less /etc/crontab
Remove all cron jobs
If and only if you want to stop all cron jobs, you can remove them entirely with:

crontab -r
This removes the entire crontab file so be careful if you‘ve got other cron jobs listed in there!

Remove specific cron job(s)
Open the cron file and delete the cron(s) that you want to remove

crontab -e
each line represent a cron job. You can remove any cron by using ctrl+k then save and exit

以上是关于crontab的主要内容,如果未能解决你的问题,请参考以下文章

34.任务计划chkconfigsystemdunittarget

无法安装 CRON 作业 [关闭]

crontab 不工作 Ubuntu

Linux 定时备份oracle库的数据

脚本里添加crontab的方法

crontab实现以秒执行