man.lsPlain-English help for Unix commands

crontab Schedule commands to run automatically

Edits the table of scheduled jobs that the cron daemon runs for your user. Each line gives a time pattern and a command. You reach for it to run backups, clean-ups or reports on a repeating schedule.

Synopsis

crontab -l
crontab -e
crontab FILE
crontab -r

Common options

Option or formWhat it does
-lList your current crontab on standard output
-eEdit your crontab in the editor named by VISUAL or EDITOR. The new table is installed when you save and quit
-rRemove your whole crontab. It does not ask for confirmation
-u USERWork on another user's crontab. Needs root, and is also advised inside su
FILEReplace your crontab with the contents of FILE. Use - to read from standard input

Examples

See what is scheduled for you
crontab -l
Edit your schedule
crontab -e
Run a backup script every day at 02:30 (a line inside the crontab)
30 2 * * * /home/ana/bin/backup.sh
Run a command every 15 minutes and keep its output (a line inside the crontab)
*/15 * * * * /home/ana/bin/check.sh >> /home/ana/check.log 2>&1
Run at 09:00 on weekdays only (a line inside the crontab)
0 9 * * 1-5 /home/ana/bin/report.sh
Save a copy of your crontab before changing it
crontab -l > crontab.backup

Notes

See also

Last reviewed 2026-10-07.