crontab

The file of scheduled jobs for a user, and the command that edits, lists or installs it.

Installing a crontab from a file silently replaces every existing scheduled job.

In more detail

Each line has five time fields, minute, hour, day of month, month and day of week, followed by the command; * means every, */5 means every fifth. crontab -e edits yours and crontab -l prints it. crontab file replaces the whole schedule with that file, so save the old one first.

Example

0 2 * * * /home/ada/bin/backup.sh >> /home/ada/log/backup.log 2>&1

Related terms

Taught in

References

Certification courses