Skip to content

Instantly share code, notes, and snippets.

@ericvanjohnson
Created July 23, 2012 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericvanjohnson/3165983 to your computer and use it in GitHub Desktop.
Save ericvanjohnson/3165983 to your computer and use it in GitHub Desktop.
Search for all cron jobs for all users
# List all cron jobs for all users
# Run from command line as root
for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done
# To know, which user does a crontab belong to insert echo $user
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