See All CRON Tasks On Your Server At Once

Howdy Folks,
Here’s another little tip I picked up on the internet that helped me out in a big way. If you ever find yourself in need of seeing a list of CRON tasks for every user on your linux server, you can run the code below:

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

I find this especially helpful moving websites to completely new servers, as you never know what little helpers have been setup for seemingly innocuous tasks.

Love, peace, and cheese.
Mike

Leave a Reply

Your email address will not be published. Required fields are marked *