查看所有定时任务

查看各个用户有没有crontab定时任务:

1 for u in `cat /etc/shadow | cut -d":" -f1`;do crontab -l -u $u;done

 查看月/周/日定时任务文件夹:

1 ls /etc/cron.monthly
2 ls /etc/cron.weekly
3 ls /etc/cron.daily
4 ls /etc/cron.hourly

使用crontab查看当前用户:

1 crontab -l

 查看crond定时任务:

1 ls /var/spool/cron
原文地址:https://www.cnblogs.com/wq242424/p/14309731.html