LoginSignup
61

More than 5 years have passed since last update.

全ユーザーのcronジョブ一覧を表示する

Posted at

サーバーが特定時間に重い時とか変なことしてるユーザーを探す時にcronで実行されてるジョブの一覧が欲しくなったので調べました。

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

rootで実行しましょう。

参考

unix - How do I list all cron jobs for all users? - Stack Overflow http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
61