当前位置:网站首页>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
边栏推荐
- 【一起上水硕系列】Day 10
- 6.23星期四库作业
- Go practice -- generate and read QR codes in golang (skip2 / go QRcode and boombuilder / barcode)
- 今天很多 CTO 都是被干掉的,因为他没有成就业务
- Analysis of the example of network subnet division in secondary vocational school
- Final review (Day7)
- 獲取並監控遠程服務器日志
- Common exceptions when Jenkins is released (continuous update...)
- Redis使用Lua脚本简介
- Gan network thought
猜你喜欢

Hotel public broadcasting background music - Design of hotel IP network broadcasting system based on Internet +

中职网络子网划分例题解析

QT read write excel -- qxlsx insert chart 5

【一起上水硕系列】Day 7 内容+Day8

Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
![[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]](/img/b0/aa5dce0bb60c50eea907de9e127d6c.jpg)
[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]

Webrtc protocol introduction -- an article to understand ice, stun, NAT, turn

Classification and discussion of plane grab detection methods based on learning

Apache+php+mysql environment construction is super detailed!!!

Sophomore dilemma (resumption)
随机推荐
Basic introduction of redis and explanation of eight types and transactions
Notepad++ wrap by specified character
Es 2022 officially released! What are the new features?
Complete set of C language file operation functions (super detailed)
Final review (Day7)
Kubernetes resource object introduction and common commands (V) - (configmap)
Robot capture experiment demonstration video
Simpleitk learning notes
About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
6.23 warehouse operation on Thursday
Jetson AGX Orin 平台移植ar0233-gw5200-max9295相机驱动
Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
6.23星期四库作业
NG Textarea-auto-resize
2022.7.2 模拟赛
Redhat7系统root用户密码破解
Jetson AgX Orin platform porting ar0233 gw5200 max9295 camera driver
期末复习DAY8
Together, Shangshui Shuo series] day 9
Qt读写Excel--QXlsx插入图表5