Linux shell scripts程式設計問題

Build a process management utility that allows you to kill processes on the basis of their CPU usage, user ID,
total elapsed time, and so forth.
This kind of utility would be especially useful to system administrators.

我只知道ps可以秀出系統執行中的程序
但我該如何符合題目要求完成此utility?
更新: 老師說不可以用shell內建的功能
也就是說不可以直接用top或著ps
2 個解答 2