What is a cron expression in Linux?
A cron expression is a five-field schedule format used by crontab in Linux to run commands automatically. The fields define minute, hour, day of month, month, and day of week.
Build and verify Linux cron schedules. Instant plain-English translation and next run preview.
At 04:05.
*Any value,List separator: e.g. 1,3,5-Range: e.g. 1-5/Step: e.g. */15@yearly0 0 1 1 * (once a year)@monthly0 0 1 * * (once a month)@weekly0 0 * * 0 (once a week)@daily0 0 * * * (once a day)@hourly0 * * * * (once an hour)@rebootRun once on system startupA cron expression is a five-field schedule format used by crontab in Linux to run commands automatically. The fields define minute, hour, day of month, month, and day of week.
Use a cron schedule generator to parse the expression, read the plain-language output, and verify the next run times. This catches common mistakes before saving jobs in /etc/crontab or user crontabs.
Cron is the Linux background service that executes scheduled jobs. Crontab is the table or file format where those schedules and commands are defined.
An asterisk (*) means "any value" for that field. For example, * in the minute field means every minute, and * in the day-of-week field means every day of the week.
If both are set (not *), cron runs the job when EITHER condition matches. If only one is set, only that condition applies.