当前位置:网站首页>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
边栏推荐
- "C and pointer" - Chapter 13 function of function pointer 1 - callback function 1
- PHP笔记超详细!!!
- 获取并监控远程服务器日志
- Talk about how to use p6spy for SQL monitoring
- How to set up altaro offsite server for replication
- 今天很多 CTO 都是被干掉的,因为他没有成就业务
- 期末复习(day3)
- @Solutions to null pointer error caused by Autowired
- Redis cannot connect remotely.
- 3dslam with 16 line lidar and octomap
猜你喜欢

@Autowired 导致空指针报错 解决方式

Disassembly and installation of Lenovo r7000 graphics card

kubernetes资源对象介绍及常用命令(五)-(ConfigMap)
![[escape character] [full of dry goods] super detailed explanation + code illustration!](/img/33/ec5a5e11bfd43f53f2767a9a0f0cc9.jpg)
[escape character] [full of dry goods] super detailed explanation + code illustration!

3dslam with 16 line lidar and octomap

@Import annotation: four ways to import configuration classes & source code analysis
![[trivia of two-dimensional array application] | [simple version] [detailed steps + code]](/img/84/98c1220d0f7bc3a948125ead6ff3d9.jpg)
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]

穀歌 | 蛋白序列的深度嵌入和比對

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

Why should we rewrite hashcode when we rewrite the equals method?
随机推荐
chromedriver对应版本下载
Export the altaro event log to a text file
Making coco datasets
Why is go language particularly popular in China
EMD distance - example of use
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]
MySQL startup error: several solutions to the server quit without updating PID file
Jetson AGX Orin 平台移植ar0233-gw5200-max9295相机驱动
Apache+php+mysql environment construction is super detailed!!!
Why should we rewrite hashcode when we rewrite the equals method?
Go practice -- closures in golang (anonymous functions, closures)
Interview question -- output the same characters in two character arrays
Training method of grasping angle in grasping detection
Kubernetes resource object introduction and common commands (V) - (configmap)
Strategy pattern: encapsulate changes and respond flexibly to changes in requirements
Beaucoup de CTO ont été tués aujourd'hui parce qu'il n'a pas fait d'affaires
Configure and use Anaconda environment in pycharm
Jetson AgX Orin platform porting ar0233 gw5200 max9295 camera driver
Map的扩容机制
"C and pointer" - Chapter 13 function of function pointer 1 - callback function 1