I know that once you run top if you press [1] you can see the load on each processor (let's forget the multi-threading issue) and if you press [s] you can configure the refresh time.How can I put this options in the launch command?I am trying to log the output with $ top -b -p $(pidof myprocess) > top.logBut I want to see my four processors and a higher refresh rate.
Launch top command showing all cores immediately
terminal;logs;top
Linux top has support for a configuration file (~/.toprc) which it can also write from running configuration:start topenable the options you want (colors, update frequency, sort order, statistics displayed, ...)hit W (that is, shift+w)Next time you run top, it will read your configuration and change its defaults to what you asked.