# View Crontab Service status
Service Crond Status
# Open crontab Service
/etc/init.d/crond start
# config file for crontab
/etc/crontab
SHELL=/bin/bash
Specifies which shell the system will use
PATH=/sbin:/bin:/usr/ sbin: / usr / bin
Specifies the path of the System execution command
MAILTO=root
Specifies that the task execution information for Crond will be sent to the root user by mail
HOME=/
Specify the home directory to use when executing a command or script
/etc/Cron.Deny represents a user who cannot use the crontab command
/etc/Cron.allowrepresents a user who can use crontab
The Cron.allow file does not exist by default
If two files exist at the same time, then/etc/Cron.allow Priority
If none of the two files exist then only root can be used
Cron.DenyThe file is empty by default
/var/Spool/Cron/A directory of all user crontab information, named after the user name
# executes every 2 minutes
*/2*** *
# Executes once every 1 hours
0****
* once daily 2 o'clock in the morning 30
* * *
Crontab Scheduled Tasks