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
Post a Comment