Is there an option for linux top command where i can filter processes by name?
For example, I only want to monitor python processes (there are several of them), and I'd like to do something like top -option "python" or something like that.
|
feedback
|
|
When you want information on processes, the answer is always It is simple, and yet it has a ridiculous number of options. Try this one:
Should give you the top 10, by cpu usage. | |||||||||
feedback
|
|
This approximates the output of
| ||||
|
feedback
|
|
You could always do "top | grep python" but I'm assuming you want something more dynamic | |||||||||||
feedback
|
|
My Perl skills are basics, but to get a real Top filtered by name, save this code to a file called topn.pl:
Usage: Top accepts at max 20 PID as arguments. | |||
|
feedback
|