Preface The Linux system is controlled by the system service crond. There are a lot of planned tasks on the Linux system, so this system service is started by default. The crontab command is used to set instructions to be executed periodically. This command reads instructions from the standard input device and stores them in the "crontab" file for later reading and execution. We can look at the status of the crond system service: From here we can see that the crond service is self-starting (enabled) and running (active) In addition, since users can set up scheduled tasks themselves, the Linux system also provides users with a command to control scheduled tasks: the crontab command. crontab Function: Add, query, and delete system scheduled tasks.
[root@localhost ~]# crontab -e #Enter the crontab editing interface. Will open vim to edit your work#Enter data, the basic format is: * * * * * command12345 1.Format explanation: Example: 2. Special Format Example 3. Import from and export to files #Import [root@localhost ~]# crontab filename #Export [root@localhost ~]# crontab -l >filename1234 Example: Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. You may also be interested in:
|
<<: Common failures and reasons for mysql connection failure
>>: Detailed explanation of the EXPLAIN command and its usage in MySQL
Today I want to summarize several very useful HTML...
Table of contents 01 Introduction to YAML files Y...
Table of contents 1. Introduction: 2. Prototype c...
What is wxs? wxs (WeiXin Script) is a scripting l...
For websites with an architecture like LNMP, they...
Table of contents 1. Basic understanding of React...
Table of contents Overview Application scenarios ...
Simulation tables and data scripts Copy the follo...
It is very common to use webpack to build single-...
I recently reviewed some CSS-related knowledge po...
As the title says: The height is known, the width...
How to determine what this points to? ①When calle...
Today we will introduce how to publish the local ...
Table of contents npm Install the loader Import P...
Yum (full name Yellow dog Updater, Modified) is a...