JustUtils
scheduleStandard Linux cron · 5 fields

Every Minute Cron Job

Create an every-minute cron job with the * * * * * expression. Edit the command and copy a ready-to-use Linux crontab line.

Your schedule

Edit the expression directly, or adjust one field at a time.

lightbulb

In plain English

Every minute, every day.

Next 5 execution times

Calculating upcoming times…

Start with a common schedule

Choose one to replace the expression above. Then fine-tune it.

Ready-to-paste cron line

Add the command that should run with this schedule.

terminal
* * * * * /usr/local/bin/backup.sh

Tip: use full paths for scripts and commands. Cron has a smaller environment than your terminal.

warningOne important cron rule

When both “day of month” and “day of week” are restricted, traditional cron may run when either one matches. If you need a precise combination, use * in one of those fields or put the extra condition in your script.

THE SIMPLE VERSION

What is crontab?

Crontab is your computer’s quiet to-do list for repeat work. You write a time pattern and a command; Linux checks the list each minute and starts the command whenever the pattern matches.

It is useful for jobs you do not want to remember: backups, report emails, cleanup tasks, or syncing data. The schedule says when; the command says what.

Using it on Ubuntu

Open your personal schedule

crontab -e

Choose an editor the first time. Paste a cron line, save, and exit.

List saved jobs

crontab -l

Shows the schedules currently installed for your user.

Remove all your jobs

crontab -r

This deletes your personal crontab immediately—use with care.

Every minute explained

How * * * * * behaves in a real cron setup

The five asterisks match every allowed minute, hour, calendar day, month, and weekday. Cron checks the entry once per minute, so this is the most frequent schedule available in a standard five-field crontab.

Minute
*
Match every minute from 0 through 59.
Hour
*
Do not limit the job to a particular hour.
Date fields
* * *
Allow every day of the month, every month, and every weekday.

A practical example

Polling a local queue during a short-lived test

Suppose a staging machine needs to check a small local queue while you verify a new integration. An every-minute entry provides quick feedback without writing a permanent background service. Keep the command idempotent so a second run does not repeat completed work.

Before saving the change

  • Measure the command's usual runtime; it should finish comfortably within one minute.
  • Prevent overlapping runs with a lock when one execution can still be active at the next minute.
  • Redirect useful output to a known log and remove the entry when the test is finished.

Common mistake to avoid

A slow command can accumulate overlapping processes sixty times an hour. This may increase CPU use, fill a log, or process the same record twice even though the cron expression itself is valid.

When to choose something else

Choose every five or fifteen minutes when fast feedback is not essential. For continuous work, retries measured in seconds, or job coordination, use a service manager or queue worker rather than cron.