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
1. Create a new user wwweee000 [root@localhost ~]...
The data that Navicat has exported cannot be impo...
The legend component is a commonly used component...
What is a transaction? A transaction is a logical...
1. Which three formats? They are: gif, jpg, and pn...
Introduction There is no need to introduce Redis ...
Usually the pictures uploaded by users need to be...
This article does not introduce anything related ...
I have also been researching MySQL performance op...
yum quick install mysql Add yum repository rpm -U...
<br />How can I remove the scroll bar on the...
Overview In a relational database, an index is a ...
A master once said that you should know the datab...
1. Getting started with setUp Briefly introduce t...
The frame and rules attributes of the table tag c...