Skip to content

Instantly share code, notes, and snippets.

@blade93ny
Forked from jvsidler/gist:4610255
Created August 7, 2018 17:36
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 blade93ny/0d3f4af2a9d3edd4ef160cd0e3acf9be to your computer and use it in GitHub Desktop.
Save blade93ny/0d3f4af2a9d3edd4ef160cd0e3acf9be to your computer and use it in GitHub Desktop.
List all crontabs for all users on UNIX systems. Must be root. Credit: http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users
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