Cron jobs
Basic task scheduling on Unux based systems
Understanding Job Scheduling: cron, crontab, and launchd
Core Components
1. cron (The Traditional Unix Scheduler)
/var/spool/cron/crontabs/username # Individual user crontabs (Debian/Ubuntu)
/var/spool/cron/username # Individual user crontabs (Red Hat/CentOS)
/etc/crontab # System-wide crontab
/etc/cron.d/ # Additional system cron files
/etc/cron.hourly/ # Scripts run hourly
/etc/cron.daily/ # Scripts run daily
/etc/cron.weekly/ # Scripts run weekly
/etc/cron.monthly/ # Scripts run monthly2. crontab (The Configuration Tool and File Format)
3. launchd (macOS-Specific Alternative)
launchd Job Types (macOS Only)
LaunchDaemons (System-wide)
LaunchAgents (User-level)
Practical Tips
What do 1>&2 or 2>&1 mean?
1>&2 or 2>&1 mean?Last updated