shell - Top for each CPU output to file -


how can specify command top display load each cpu command line. know pressing 1 in interactive shell want write output of top file. example can write:

top -n 3 -b > system_info.txt 

this command write output file shows average cpus.

there may better way this, way know use top configuration file. if hit 'w' while top running, top write configuration file home directory. thereafter, top open in same way did when wrote configuration file. if need run script or cronjob, have set $home path put desired configuration file.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -