crontab

来源:互联网 发布:.net 桥接数据库 编辑:程序博客网 时间:2024/06/14 05:24

使用which crontab找到crontab

[root@lmrac1 ~]# which crontab/usr/bin/crontab

本来想cat看看里面的东西,结果出来了一堆的乱码。我不服,应该有个介绍文档吧

[root@lmrac1 ~]# find / -name crontab/usr/bin/crontab/etc/crontab

果然不出我所料。

[root@lmrac1 ~]# cat /etc/crontabSHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/binMAILTO=rootHOME=/# For details see man 4 crontabs# Example of job definition:# .---------------- minute (0 - 59)# |  .------------- hour (0 - 23)# |  |  .---------- day of month (1 - 31)# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat# |  |  |  |  |# *  *  *  *  * user-name command to be executed[root@lmrac1 ~]# 

简单一句话:分时天月周命令


crontab常用命令:

查看:crontab -l

编辑:crontab -e

0 0