Complete the command to view the cron log file.
tail -f /var/log/[1]The cron log file on many Linux systems is /var/log/cron. Using tail -f lets you watch new cron entries live.
Complete the command to search cron logs for errors.
grep '[1]' /var/log/cron
Searching for the word error helps find cron job failures in the log.
Fix the error in the command to view cron logs with timestamps.
awk '[1]' /var/log/cron
The correct awk syntax requires the action block inside curly braces with print and the fields to display.
Fill both blanks to filter cron logs for a specific user and command.
grep '[1]' /var/log/cron | grep '[2]'
First filter by the user root, then by the command backup.sh to find relevant cron entries.
Fill all three blanks to create a dictionary of commands and their run counts from cron logs.
awk '{print $6}' /var/log/cron | sort | uniq -c | awk '[1]' | sort -nr > [2] && cat [3]
This command sequence counts how many times each command runs in cron logs, saves the summary to a file, and then displays it.