unix

How do I determine how many processors/cores there are?

To determine how many virtual processors are installed and how many cores they are, you can do the following:

How many virtual processors are there?

grep ^processor /proc/cpuinfo | wc -l

How many cores are the processors that are installed?

grep ‘cpu cores’ /proc/cpuinfo

cpu cores : 4
cpu cores : 4

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top