-
-
Save daubac402/4c912e21e3cc60b968f39906e1017c1f to your computer and use it in GitHub Desktop.
List all crontabs for all users on UNIX systems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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