List all cron jobs for all users

PDF

To show the list of cronjobs you run crontab -l, which only shows the cronjobs of the current user. To list all cronjobs for all users you can write a little bash script and run it as superuser:

#!/bin/bash
#List all cron jobs for all users
for user in `cat /etc/passwd | cut -d":" -f1`;
do
crontab -l -u $user;
done

Tags:
 

Please login first before adding a comment.

Search






You are here: Home Howtos and FAQs Bash List all cron jobs for all users