How to find number of CPU processors on a Linux machine

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


You can find the number or processors on your linux machine as follows:

shell> grep processor /proc/cpuinfo

This would give output like (which means the following computer has 8 processors:

processor	: 0
processor	: 1
processor	: 2
processor	: 3
processor	: 4
processor	: 5
processor	: 6
processor	: 7

Finding number of CPU processors on a Linux machineFinding number of CPU processors on a Linux machine

Following tutorials explain:

How to find CPU Information on a Linux machine

How to find RAM of your Linux box

How to set Cron on your Linux box

How to search for files on Linux





Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.