Tuesday, April 28, 2009

Show all users cron jobs

Just a quick one today…it’s been a busy busy few days. :)  Here’s a quick way (when logged in as root) to see all the cron jobs configured on a system:

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

Watch the line wrap and enjoy!

No comments: