Today I watched a video about server performance testing. The video mentioned a Linux crontab command, a strange command, and then read the information, wrote a small demo to summarize this crontab-related knowledge. For me, this is another new knowledge point, and it is improving every day.
Go to the /etc directory and look at the Ubuntu /etc directory to see, we all know that the /etc directory is mainly used to store the configuration files in the system, basically all configuration files can be here turn up. Run the following command to see:
ls /etc/cron* This command will list all files and folders starting with cron in the /etc directory. You can see that there are mainly the following folders:
/etc/cron.hourly This stores the scripts that need to be run every hour. /etc/cron.daily This stores the scripts that need to be run every day. /etc/cron.weekly Here is the script that needs to be run every week /etc/cron.monthly. Here is the script /etc/cron.d that needs to be run every month. If it is not running by hour, nor by day, week and month, put it. In this folder, we can put the scripts we need to run regularly into the corresponding folder, and the system will run the corresponding scripts at regular intervals. So how does the system do it?
In the /etc directory, there is also a crontab file. The contents of this file are as follows:
# /etc/crontab: system-wide crontab# Unlike any other crontab you don't have to Run the `crontab'# command to install the new version when you edit this file# and files in /etc/cron.d. These files also have username fields,# that none of the other crontabs do.
SHELL=/bin/shPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# mh dom mon dow user command17 * * * * root cd /&& run-parts --report /etc/cron.hourly25 6 * * * root test -x /usr/sbin/anacron
you want under Linux How to install the jdk you want under Linux? Last time we talked about how to u
Mono is a cross-platform, open source .NET development framework. Support for Linux systems, which
Ext2Fsd is a good tool for reading and writing Linux partitions. This software is introduced in the
Regarding the circuit structure, whether it is a linear power supply, a thyristor power supply or
Two common startup failure resolution methods for Linux operation
Detailed analysis of kernel module development under Linux operating system
How to view and modify file read and write permissions under Linux system
Linux/Unix operating system is in the desktop control of the intranet
Azure High Availability Architecture Design (LB and Traffic Manager)
Linux remote graphical common error handling
Simple learning of make and makefile
After installing xen, the boot will be black, what happened?
Nginx SSL/TLS configuration for “A+” Qualys SSL Labs ratin
Samsung Camera Interface driver(FIMC)
Modify the Windows 8 system installation path method
How to disable the wireless network connection in Win8 system
Windows can't start windows audio service?
Microsoft employees who broke the news WP8.1 "Amazing Features" were resigned
Win10 Build 9926 Patch Release Download Patching Multiple Improvements Updates
Windows server 2008 image file can not display thumbnail solution
When the XP starts, I can't find the WINSYS.VBS file
Method of not supporting the desktop set Bing picture tutorial
How do penguins fm sing? Penguin fm song method detailed introduction