码迷,mamicode.com
首页 > 其他好文 > 详细

crontab

时间:2019-12-20 18:53:40      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:careful   HERE   stop   removes   ecif   any   delete   pen   wing   

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

标签:careful   HERE   stop   removes   ecif   any   delete   pen   wing   

原文地址:https://www.cnblogs.com/buxizhizhoum/p/12074195.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!