64
61

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

64
61
0

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
64
61

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?