Last active
June 11, 2019 14:12
-
-
Save Clivern/711ad75ea43666863e8e21eaced3f911 to your computer and use it in GitHub Desktop.
Get All Cron Jobs for All Users
This file contains hidden or 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
| # List Cron Jobs | |
| $ for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done | |
| $ for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done | |
| # Edit crontab | |
| $ sudo crontab -e -u www-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment