Schedule It
Write cron expressions for automated backup and log rotation jobs.
A intermediate Linux challenge worth 10 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: The ops team needs two automated jobs. The scripts already exist — you just need to schedule them.
Your tasks:
- Add a crontab entry to run
/opt/scripts/backup.shevery day at 3:30 AM - Add a crontab entry to run
/opt/scripts/rotate_logs.shevery Sunday at midnight - Save your crontab to /tmp/mycrontab using:
crontab -l > /tmp/mycrontab
Cron format: minute hour day-of-month month day-of-week command
Commands to learn: crontab -e, crontab -l, cron expression syntax
Run check when done.