Bird
0
0

Which command will continuously display new cron log entries as they are written?

easy📝 Conceptual Q2 of 15
Linux CLI - Cron and Scheduling
Which command will continuously display new cron log entries as they are written?
Agrep cron /var/log/syslog
Bcat /var/log/cron
Chead -n 10 /var/log/cron
Dtail -f /var/log/cron
Step-by-Step Solution
Solution:
  1. Step 1: Identify command to follow log updates

    The tail -f command shows the end of a file and updates output as new lines are added.
  2. Step 2: Compare other commands

    cat shows the whole file once, head shows only first lines, grep filters but does not follow live updates.
  3. Final Answer:

    tail -f /var/log/cron -> Option D
  4. Quick Check:

    Live cron log monitoring = tail -f [OK]
Quick Trick: Use tail -f to watch logs live as they update [OK]
Common Mistakes:
  • Using cat which does not update live
  • Using head which shows only start of file
  • Using grep without follow option

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes