Linux – Monitoring linux processes

linuxtop

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.

Best Answer

When you want information on processes, the answer is always ps

It is simple, and yet it has a ridiculous number of options.

Try this one:

ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10

Should give you the top 10, by cpu usage.