Memory and CPU utilization process

Hi,

I need to check which process in linux is taking high memory and which process is taking high cpu usage.

Regards,
Bash

Probably with top or ps? Read the manpage for the options.

Regards

I check with top, but i want that whatever process is currently running i want from highest CPU and memory utilization to lowest that will show all process.

Regards,
Bash

Use the following command:

ps -eo pcpu,%mem,cmd|sort -k2 -r

It gives the %cpu,%memory utilization of the processes in order of memory usage from highest to lowest.

Regards,
Vinod.

Thanks for your kind reply.

Regards,
Bash