Linux CLI - Cron and SchedulingWhy does the cron expression 0 0 * * 1 run only once a week?ABecause hour and minute are zero, limiting runs to midnightBBecause day of week is set to 1, which means Monday onlyCBecause day of month is *, so it runs dailyDBecause month is *, so it runs every monthCheck Answer
Step-by-Step SolutionSolution:Step 1: Analyze day of week fieldDay of week=1 means Monday only.Step 2: Understand hour and minuteHour=0 and minute=0 means midnight time.Step 3: Explain frequencySince day of week restricts to Monday, job runs once per week at midnight.Final Answer:Because day of week is set to 1, which means Monday only -> Option BQuick Check:Day of week limits frequency to once weekly [OK]Quick Trick: Day of week field controls weekly frequency [OK]Common Mistakes:Thinking it runs dailyIgnoring day of week fieldConfusing day of month and day of week
Master "Cron and Scheduling" in Linux CLI9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Linux CLI Quizzes Archiving and Compression - tar (create and extract archives) - Quiz 15hard Archiving and Compression - bzip2 and xz compression - Quiz 3easy Cron and Scheduling - systemd timers - Quiz 12easy Cron and Scheduling - Why cron automates recurring tasks - Quiz 8hard Environment and Configuration - Aliases for shortcuts - Quiz 5medium Package Management - Installing, updating, removing packages - Quiz 2easy System Administration - System resource monitoring (free, uptime, vmstat) - Quiz 3easy System Administration - Why sysadmin skills manage production servers - Quiz 3easy System Administration - journalctl for systemd logs - Quiz 11easy System Administration - Firewall basics (ufw, iptables) - Quiz 9hard