check crontab log code example

Example 1: linux check cronjob log

grep CRON /var/log/syslog

Example 2: where is the crontab log

grep CRON /var/log/syslog

Example 3: how to check crontab list

To list all scheduled cron jobs for the current user : crontab –l
To display contents of the root user’s crontab : less /etc/crontab
To list cron jobs that belong to a specific user : sudo crontab –u username –l
To list hourly cron jobs : ls –la /etc/cron.hourly
To list daily cron jobs : ls –la /etc/cron.daily
To display weekly cron jobs : ls –la /etc/cron.weekly
To display monthly cron jobs : ls –la /etc/cron.monthly