Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the copy-the-code domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121
List all cronjobs for all cPanel users - PC✗3
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.