Crontab is a configuration file in Unix-based systems used to schedule tasks to run at specified times. Each entry in a crontab file consists of a cron expression and a command to be executed. The cron expression defines the schedule, including minute, hour, day of the month, month, and day of the week.
crontab -e
crontab -e
15 3 * * * /usr/bin/find
- Runs the 'find' command at 3:15 AM every day.0 22 * * 1-5 /usr/bin/backup
- Perform a backup at 10:00 PM every weekday.*/30 8-18 * * 1-5 /usr/bin/reminder
- Sends a reminder every 30 minutes between 8:00 AM and 6:00 PM on weekdays.If your crontab entries are not working as expected, here are some common issues to check:
systemctl status cron
For more detailed information about crontab, visit the official documentation:
Crontab Manual Page