crontab -l all users : a Bash script
#!/bin/bash
# List all usernames on the system
usernames=$(cat /etc/passwd | cut -d: -f1)
# For each user, print their username and crontab (if any)
for user in $usernames; do
echo "Checking crontab for user: $user"
crontab -u $user -l
...
danielmuyshond.hashnode.dev1 min read