Page 1 of 1

command to output top cpu processes to a file

Posted: 2016-07-08 14:50
by ltoso
Hi,
i am looking for a command that can write top CPU using processes of particular time to the a text file and similar for top RAM consuming to a file.

Please recommend

Re: command to output top cpu processes to a file

Posted: 2016-07-08 14:55
by GarryRicketson
Try:

Code: Select all

man top
Also, what you should have done first:
command to output top cpu processes to a file

Re: command to output top cpu processes to a file

Posted: 2016-07-08 16:35
by dasein
GarryRicketson wrote:Also, what you should have done first:
command to output top cpu processes to a file
Wow. A half-million hits.

Lazy OP. No biscuit.

Re: command to output top cpu processes to a file

Posted: 2016-07-08 17:58
by GarryRicketson
Well some of them maybe don't work to good, unfortunately I don't remember the exact command, I just know there is one that does work, and that was how I found it.
I needed/ wanted to save the info to a file, so that is what I did.