crontab -e schedules recurring tasks with cron syntax. Format: minute hour day month weekday command. Always use full paths in cron commands. Redirect output to a log file to capture errors from jobs.
Scheduling with Cron
crontab -e # edit your cron jobs
crontab -l # list cron jobs
# Format: minute hour day month weekday command
# * means "every"
# Every day at 2:30 AM
30 2 * * * /usr/local/bin/backup.sh
# Every Monday at midnight
0 0 * * 1 /usr/local/bin/weekly.sh
# Every 5 minutes
*/5 * * * * /usr/local/bin/ping_check.sh
# Redirect output
30 2 * * * /backup.sh >> /var/log/backup.log 2>&1