Skip to content

Instantly share code, notes, and snippets.

@crzapata
Created September 7, 2016 13:41
Show Gist options
  • Save crzapata/7295b5c853d21563f6c27780b17affb9 to your computer and use it in GitHub Desktop.
Save crzapata/7295b5c853d21563f6c27780b17affb9 to your computer and use it in GitHub Desktop.
List 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