Ubuntu Linux check cron log file error or messages in /var/log/cron.log file

In Ubuntu Linux, you can check the cron log file for errors or messages by viewing the /var/log/cron.log file. This file contains information about when cron jobs are executed and their results.

You can view the contents of the file with the following command:

sudo less /var/log/cron.log

This will show you the contents of the file, and you can navigate through it using the arrow keys. To exit the file, press q.

You can also use the grep command to search for specific information in the file:

sudo grep "error" /var/log/cron.log

This will search for all lines containing the word “error” in the cron.log file.

Leave a Comment