Bird
0
0

Which of the following is the correct syntax to schedule a cron job on Raspberry Pi?

easy📝 Syntax Q12 of 15
Raspberry Pi - Automation and Scheduling

Which of the following is the correct syntax to schedule a cron job on Raspberry Pi?

_____ * * * * /home/pi/script.sh
Acrontab -e
Bcron
Ccrontab
D*
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to edit cron jobs

    The command to edit cron jobs is crontab -e, which opens the crontab file in an editor.
  2. Step 2: Understand cron job syntax

    The line * * * * * /home/pi/script.sh is a cron job entry added after running crontab -e.
  3. Final Answer:

    crontab -e -> Option A
  4. Quick Check:

    Use crontab -e to schedule tasks = C [OK]
Quick Trick: Use 'crontab -e' command to schedule tasks on Raspberry Pi [OK]
Common Mistakes:
MISTAKES
  • Using 'cron' instead of 'crontab -e'
  • Typing 'crontab -e' inside the cron file
  • Using '*' alone as a command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes