Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

command to output top cpu processes to a file

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
ltoso
Posts: 9
Joined: 2010-03-24 04:39

command to output top cpu processes to a file

#1 Post 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

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: command to output top cpu processes to a file

#2 Post by GarryRicketson »

Try:

Code: Select all

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

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: command to output top cpu processes to a file

#3 Post 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.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: command to output top cpu processes to a file

#4 Post 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.

Post Reply