Shell-script - List cron of all users on a server, Print all existing cron jobs
List cron of all users on a server
How to find all cron jobs running on the server?In a daily check we normally check what are existing cron jobs set and running on a server. It is always better to have a look and monitor existing cron jobs on the server.
How to list all cron jobs of all users?
#!/bin/bash #List all cron jobs for all users for user in `cat /etc/passwd | cut -d":" -f1`; do crontab -l -u $user; done
Normally cron jobs are monitored on all servers for security check or health check.
To list all cron jobs of an current user
# crontab -l
To edit or add a cron jobs of current user
# crontab -e
The topic on Shell-script - List cron of all users on a server is posted by - Guru
Hope you have enjoyed, Shell-script - List cron of all users on a serverThanks for your time