Cron job every minute

To run a cron job every minute, use * * * * *. Every minute.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Runs

Next Runs

Your time zone
Saturday10 Oct 2026, 23:04
Saturday10 Oct 2026, 23:05
Saturday10 Oct 2026, 23:06
Saturday10 Oct 2026, 23:07
Saturday10 Oct 2026, 23:08

Crontab Line

* * * * * /path/to/job.sh >> /var/log/cron-job.log 2>&1

Cron Expression Generator

* * * * * explained

Expression* * * * *
MeaningEvery minute
Runs per Week10,080
Crontab Line* * * * * /path/to/job.sh
systemd OnCalendar*-*-* *:*:00
Time ZoneThe server's, unless CRON_TZ is set

Cron checks the schedule once a minute and starts the job at the start of each matching minute, in the server's time zone.

If a run can take longer than the gap between runs, stop runs overlapping with flock: * * * * * flock -n /tmp/job.lock /path/to/job.sh. A second copy then exits straight away instead of piling up.

Cron runs jobs with a minimal environment: use full paths, and send output to a log file (>> /var/log/job.log 2>&1) so errors are not lost.

Questions

How do I run a cron job every minute?
Run crontab -e and add: * * * * * /path/to/job.sh
How do I check the cron job ran?
Look in the job's own log if it writes one, or the system log: grep CRON /var/log/syslog on Debian and Ubuntu, or journalctl -u cron (cron.service is crond on RHEL).
What is the systemd timer equivalent of * * * * *?
OnCalendar=*-*-* *:*:00 in a .timer unit. systemd timers can also catch up on missed runs with Persistent=true.
Can cron run every 30 seconds?
Not directly; the smallest unit is a minute. Add two lines: * * * * * job and * * * * * sleep 30; job. A systemd timer with OnUnitActiveSec=30s is cleaner.

Run servers for other people?

Frabs stops the abuse their VMs send out, and keeps your network off blocklists.