Count the processors on a Linux server
If you need to see how many processors there are available on a Linu/Unix server, use the following command from your shell:
cat /proc/cpuinfo | grep processor
each of the processors will be listed in the output. For example, on a server I use the output looks like this:
processor : 0
processor : 1
processor : 2
processor : 3
processor : 4
processor : 5
processor : 6
processor : 7
So, on this server we can see there are 8 processors available.
