command to output top cpu processes to a file

News and discussion about development of the Debian OS itself

command to output top cpu processes to a file

Postby ltoso » 2016-07-08 14:50

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
ltoso
 
Posts: 3
Joined: 2010-03-24 04:39

Re: command to output top cpu processes to a file

Postby GarryRicketson » 2016-07-08 14:55

Try:
Code: Select all
man top

Also, what you should have done first:
command to output top cpu processes to a file
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4369
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: command to output top cpu processes to a file

Postby dasein » 2016-07-08 16:35

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.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: command to output top cpu processes to a file

Postby GarryRicketson » 2016-07-08 17:58

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.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4369
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to Debian Development

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable