First, the Task plan management--crontab
Edit Scheduled Task: Crontab-e "-u user Name"
View Scheduled Tasks: Crontab-l "-u user Name"
Delete Scheduled Task: Crontab-r "-u user Name"
Root user can manage scheduled tasks for a specified user
Ordinary users can only manage their own scheduled tasks
II. configuration format of the task plan
* * * * *
Minute hour date Month week
Minutes: The value is any integer from 0~59
Hours: The value is any integer from 0~23
Date: The value is any integer from 1~31
Month: The value is any integer from 1~12
Week: The value is any integer from 0~7, 0 or 7 for Sunday
Command: The command or program script to execute
Three, the special expression method of time value
* Indicates any time within the range
, which represents multiple discontinuous points of time for the interval
-Represents a continuous range of time
/Specify the time frequency of the interval
Application examples
0 17 * * 1-5 weeks to Friday daily 17:00
30 8 * * 1,3,5 per week, three or five 8:30
0 8-18/2 * * * 8 to 18 points every 2 hours
0 * */3 * * every 3 days
Linux Configuration Task Scheduler-—— crontab