List all cronjobs for all cPanel users

List all cronjobs for all cPanel users

To list all cronjobs for all users on a cPanel server use the following command

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done
image 27 - List all cronjobs for all cPanel users

or:

cat /var/spool/cron/*

To list cronjobs for a single user, navigate to /var/spool and view the user file:

cd /var/spool/cron/
cat USERNAME

For example, if the username is nupsn:

image 25 - List all cronjobs for all cPanel users

Or, use the command crontab -l -u USERNAME

crontab -l -u root
image 26 - List all cronjobs for all cPanel users
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.