Skip to content

Instantly share code, notes, and snippets.

@codenamev
Created July 22, 2013 19:43
Show Gist options
  • Save codenamev/6056974 to your computer and use it in GitHub Desktop.
Save codenamev/6056974 to your computer and use it in GitHub Desktop.
List all cron jobs for all users
#!/bin/bash
for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment