当前位置:网站首页>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
边栏推荐
- How do I migrate my altaro VM backup configuration to another machine?
- Analysis of the example of network subnet division in secondary vocational school
- [advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation
- 一起上水碩系列】Day 9
- [Shangshui Shuo series together] day 10
- Method of finding prime number
- College campus IP network broadcasting - manufacturer's design guide for college campus IP broadcasting scheme based on campus LAN
- Go practice -- closures in golang (anonymous functions, closures)
- 求质数的方法
- Notepad++ wrap by specified character
猜你喜欢

College campus IP network broadcasting - manufacturer's design guide for college campus IP broadcasting scheme based on campus LAN

Shanghai daoning, together with American /n software, will provide you with more powerful Internet enterprise communication and security component services

How to install and configure altaro VM backup for VMware vSphere

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

Go practice -- factory mode of design patterns in golang (simple factory, factory method, abstract factory)

Training method of grasping angle in grasping detection

Personal outlook | looking forward to the future from Xiaobai's self analysis and future planning

2022.DAY592

About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller

@Autowired 导致空指针报错 解决方式
随机推荐
"C and pointer" - Chapter 13 advanced pointer int * (* (* (*f) () [6]) ()
Hotel public broadcasting background music - Design of hotel IP network broadcasting system based on Internet +
AtCoder Beginner Contest 258(A-D)
Robot capture experiment demonstration video
MySQL startup error: several solutions to the server quit without updating PID file
Go practice -- factory mode of design patterns in golang (simple factory, factory method, abstract factory)
redis 无法远程连接问题。
Webrtc native M96 version opening trip -- a reading code download and compilation (Ninja GN depot_tools)
2022.6.30DAY591
ninja: build stopped: subcommand failed.
Final review (Day5)
Talk about how to use p6spy for SQL monitoring
Redhat7 system root user password cracking
期末复习(DAY7)
Get and monitor remote server logs
Azure file synchronization of altaro: the end of traditional file servers?
Common exceptions when Jenkins is released (continuous update...)
Source insight operation manual installation trial
Troubleshooting of 32GB Jetson Orin SOM failure to brush
[Shangshui Shuo series together] day 10