当前位置:网站首页>Crontab command usage
Crontab command usage
2022-07-03 05:44:00 【k678mh】
crond yes linux A command used to execute a program on a regular basis . When the operating system is installed , By default, the task scheduling command is started .crond Order that every minute be checked regularly for any work to be performed , If there is work to be performed, it will be automatically performed . and linux Task scheduling is mainly divided into the following two categories :
1、 The work performed by the system : What the system does periodically , Such as backup system data 、 Clean cache
2、 Work performed by individuals : Work that a user does on a regular basis , For example, every 10 Minutes to check the mail server for new messages , These tasks can be set by each user
Crontab yes UNIX Timing task trigger under the system , The permissions of its users are recorded in the following two documents :
/etc/cron.deny
Users listed in this file are not allowed to use Crontab command
/etc/cron.allow
Users listed in this file are allowed to use Crontab command
/var/spool/cron/
It's for all users crontab file
/var/spool/cron/crontabs
/var/spool/cron/crontabs
Crontab The format of the command is :crontab –l|-r|-e|-i [username], The meaning of its parameters is shown in Table 1 :
-l Display the user's Crontab The content of the document crontabl –l
-i Delete the user's Crontab Prompt before file crontabl -ri
-r from Crontab Delete the user's Crontab file crontabl -r
-e Edit the user's Crontab file crontabl -e
User created Crontab File in /var/spool/cron in , The file name is the same as the user name .
Its format is divided into six paragraphs , The first five sections are time setting sections , The sixth paragraph is the command segment to be executed ,
The format is as follows :* * * * *
The meaning of the time period is shown in Table 2 :
The first paragraph For minutes 0—59
The second paragraph For hours 0—23
The third paragraph Representative date 1—31
The fourth paragraph Represents the month 1—12
The fifth paragraph The day of the week ,0 On behalf of Sunday 0—6
边栏推荐
- Webrtc M96 release notes (SDP abolishes Plan B and supports opus red redundant coding)
- AtCoder Beginner Contest 258(A-D)
- [trivia of two-dimensional array application] | [simple version] [detailed steps + code]
- PHP notes are super detailed!!!
- Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
- Get and monitor remote server logs
- Why is go language particularly popular in China
- Talk about how to use p6spy for SQL monitoring
- 期末复习(Day5)
- [function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation
猜你喜欢

6.23 warehouse operation on Thursday

Capacity expansion mechanism of map

SimpleITK学习笔记

"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)

一起上水硕系列】Day 9
![[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer](/img/9e/a4558e8e53c9655cbc1a38e8c0536e.jpg)
[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer

Hotel public broadcasting background music - Design of hotel IP network broadcasting system based on Internet +
![[advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation](/img/9b/a309607c037b0a18ff6b234a866f9f.jpg)
[advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation

2022.DAY592

Webrtc native M96 version opening trip -- a reading code download and compilation (Ninja GN depot_tools)
随机推荐
QT read write excel -- qxlsx insert chart 5
Deploy crawl detection network using tensorrt (I)
ES 2022 正式发布!有哪些新特性?
Niuke JS separator
期末复习(Day2)
Pessimistic lock and optimistic lock of multithreading
Shanghai daoning, together with American /n software, will provide you with more powerful Internet enterprise communication and security component services
Learn libcef together -- set cookies for your browser
How to use source insight
Obtenir et surveiller les journaux du serveur distant
【无标题】
How to install and configure altaro VM backup for VMware vSphere
About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
[set theory] relational closure (relational closure related theorem)
Explanation of several points needing attention in final (tested by the author)
@Solutions to null pointer error caused by Autowired
Final review (day3)
AtCoder Beginner Contest 258(A-D)
Redhat7 system root user password cracking
2022.DAY592