Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any other FreeBSD command besides "top" which can be used to get the following values?

CPU: % user, % nice, % system, % interrupt, % idle

My problem to be specific is that these values do not get updated by just "top" but require "top -d 2" and this command does not work in the current framework I'm working with.

share|improve this question

migrated from stackoverflow.com Nov 5 '12 at 15:49

This question came from our site for professional and enthusiast programmers.

    
The systat(1) command might be useful. – arrowd Nov 5 '12 at 5:08

iostat(8) shows CPU statistics:

   us      % of cpu time in user mode
   ni      % of cpu time in user mode running niced processes
   sy      % of cpu time in system mode
   in      % of cpu time in interrupt mode
   id      % of cpu time in idle mode
share|improve this answer

You must log in to answer this question.