Home     Blog

How to Find Out CPU Utilization in UNIX

Keeping track of your CPU’s performance is extremely important. In UNIX, you can accomplish this task by using the system utilities and commands. For those who would like to find out their CPU utilization, one command is extremely important. It is called SAR – System Activity Reporter.

The SAR commands make accessing CPU performance quite easy. Some simple commands to retrieve CPU utilization include:

sar -u

The above command will display the current CPU usage.

# sar

The above command will display the entire day’s CPU usage.how to find out cpu utilization in unix How to Find Out CPU Utilization in UNIX

# sar -u 12 5

The above command will display the CPU usage 5 times at 12-second intervals. It should be noted that sar t [n] can be used to assign the time between each display (t equals time and n equals number).

Other command features for outputs include:

  • %sys: This command is used to view the percentage of the CPU used for the system time.
  • %usr: This command is used to view the percentage of the CPU for the user.
  • %oidle: This command is used to view the percentage of the CPU that is currently idle.

The above commands can be used for all versions of operating systems under UNIX.

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
Follow Will.Spencer on

Leave a Reply

Related Posts

  • How to find a Unix command

    Unix provides hundreds of useful commands for all sorts of purposes, but it is sometimes difficult to find the specific command you are looking for. To assist you with this task, most versions of Unix provide the `man -k` command. The `man -k` command searches the online manual pages to help you find the Unix [...]...


  • How to Use the Unix Find Command

    The Unix find command, as the name implies, is a command that you can enter into the command line, or terminal, of a Unix operating system, allowing you to process any given set of files or directories. It is a highly useful command that you can take advantage of on Unix based operating system, making [...]...


  • Where to Find a Unix Tutorial

    Unix has many dedicated fans who have written quite a few excellent Unix tutorials for beginning users. Here are a few of the better Unix tutorials: Unix Tutorial for Beginners Unix: The Bare Minimum Introduction to Unix commands Unix Tutorial UNIXhelp for Users Unix Tutorial and Command Reference Unix Tutorial...


  • How to Use the Unix Top Command

    Top is a small, but powerful program on both Unix and Linux systems. Its purpose is to allow users to monitor processes on their system. It has two main sections. The first displays general information such as the load averages, number of running and sleeping tasks, and overall CPU and memory usage. The second main [...]...


  • Basic Unix Commands

    The total number of Unix commands is immense. No normal user or system administrator would ever need to know them all. The Unix commands available to you will vary based upon several factors: The version of Unix you are using (FreeBSD, Linux, Solaris, AIX, HP-UX, OpenBSD, etc…) The Unix shell you are using (sh, csh, [...]...