Linux Cron Jobs

Schedule recurring tasks with crontab and sane logging.

  • linux cron
  • crontab
  • schedule task
  • cron log
  • cron every 5

Linux Cron Jobs

Schedule recurring tasks with crontab and sane logging.

Commands

CommandWhat it does
crontab -eEdit your schedule
crontab -lList current jobs
daily 2 AM with logsCron line with output redirect
every 5 minutesSlash-step schedule
systemctl status cronIs the daemon running?

Example

0 2 * * * /opt/backup.sh >>/var/log/backup.log 2>&1

FAQ

My cron job never runs - checklist?

Daemon running, absolute paths, env vars set inside crontab, and output redirected to a log you read.

Cron vs systemd timers?

Cron for simple schedules; timers add logging and dependencies for critical jobs.

الأسئلة الشائعة

My cron job never runs - checklist?
Daemon running, absolute paths, env vars set inside crontab, and output redirected to a log you read.
Cron vs systemd timers?
Cron for simple schedules; timers add logging and dependencies for critical jobs.

Linux