查看crontab服务状态
[root@SHELL]# service crond status
crond (pid 1155) is running...
service crond start //启动服务
service crond stop //关闭服务
service crond restart //重启服务
service crond reload //重新载入配置
查看当前用户设定的定时任务
[root@SHELL]# crontab -l
no crontab for root
查看root用户的定时任务
[root@SHELL]# crontab -l -u root
no crontab for root
编辑root用户定时任务
[root@SHELL]# crontab -u root -e
[root@SHELL]# crontab -l
*/5 * * * * /bin/sh /home/SHELL/backup_wekan_data.sh
删除当前用户设定的定时任务
[root@SHELL]# crontab -r
You have mail in /var/spool/mail/root
删除指定用户root的设定任务
[root@SHELL]# crontab -u root -r
You have mail in /var/spool/mail/root
查看root用户的定时任务
[root@SHELL]# crontab -u root -l
30 8 1,15 * * /bin/sh /home/SHELL/backup_wekan_data.sh