Skip to main content

Get All CronJobs from Each Users

getent passwd | cut -d: -f1 | while read user; do echo "Cron jobs for user: $user"; sudo crontab -l -u "$user" 2>/dev/null; done