查看所有定時任務


查看各個用戶有沒有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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM