如何查看其他用户的 cron 任务?

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/henryhu712/article/details/84262111

查看某个用户的 cron 任务:

crontab -u username -l

下面的脚本则列出所有用户的 cron 任务:

for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

猜你喜欢

转载自blog.csdn.net/henryhu712/article/details/84262111
今日推荐