Crontab /

Crontab expression to run cron job every 1 hour

Free Cron Job Monitoring

Every hour

Next Execution at03:00:00 2025/07/09

To run a cron job every 1 hour, use the following crontab expression: 0 * * * *

Rules of Cron Expression Syntax

 | -  - - -  - - Minute (0-59)
 | | - - - - - - Hour (0-23)
 | | |- -  - - - Day of the month (1-31)
 | | | | - - - Month (1-12)
 | | | | | - - Day of the Week (1-7, Monday to Sunday)
 * * * * *

Examples of tasks run every hour:

  • Sending emails
  • Regular database backups
  • perform script
  • generate error reports for critical functions

FAQ 

Q1. How can I run a cron job every 1 hour?

To run a cron job every 1 hour, you can use the following crontab expression:

0 * * * *

This expression will run the cron job at the 0th minute of every hour, every day of the week, every day of the month, and every month.

Q2. What does each field in a crontab expression mean?

A crontab expression consists of five fields: minute, hour, day of the month, month, and day of the week. Each field is represented by a number or a special character, such as an asterisk (*), which denotes all possible values.

Q3. How do I specify a specific command to be run in the cron job?

To specify a specific command to be run in the cron job, you need to enter the command in the crontab file. Each line in the crontab file represents a separate cron job.

Q4. Can I automate tasks using cron?

Yes, cron is commonly used to automate tasks such as maintenance or administration tasks. By scheduling cron jobs, you can automate repetitive tasks and free up your time for more important things.

Q5. How do I edit and save a crontab file?

To edit and save a crontab file, you can use a text editor like vi or nano. Simply open the crontab file, make the necessary changes, and save the file. The changes will take effect immediately.

Q6. What are some commonly used cron syntax?

Some commonly used cron syntax includes:

@hourly: Executes the cron job once every hour.

@daily: Executes the cron job once every day.

@weekly: Executes the cron job once every week.

@monthly: Executes the cron job once every month.

@yearly: Executes the cron job once every year.