One of the first things that may concern you is that whether your web hosting company has equipped enough CPUs or Processors on your server as they have allegedly done. Or you are on shared plans and are simply curious whether your web hosting provider is overselling by overloading your server a lot.
First make sure you have SSH access to your hosting server which majority of hosting businesses are now providing. Then create an SSH account and log it in to the server.
A rather simple linux bash command will help you determine how many CPUs your host has on your server:
cat /proc/cpuinfo | grep processor | wc -l
This combination of pipeline command extracts server processors information from /proc/cpuinfo that contains CPU details each per line, returning a plain number which will usually be 1, 2, 4 or even more.
There you go. Now find out whether your host is cheating on you with this tip in addition to checking your server load!
Extra Tips
You can find plenty of other useful and interesting information about your hosting server and OS release at /proc. For example, for some RAM stats:
cat /proc/meminfo
For total seconds since the last reboot:
cat /proc/uptime
For Linux release and versions:
cat /proc/version
And much more. Just ‘ls /proc’ and try for yourself.

April 13th, 2009 at 10:27 pm
[...] Simple SSH (Linux) Command to Display the Number of CPUs (Processors) of Your Hosting Server Apr [...]
April 13th, 2009 at 10:56 pm
[...] Check for the number of server processors or CPUs [...]
April 13th, 2009 at 10:57 pm
[...] /proc/cpuinfo | grep processor | wc -l Which will usually return the number of the CPUs of the current server: 2 Then, display the server load by uptime Which outputs a single line of [...]
September 5th, 2009 at 12:55 am
[...] may also be interested in some other useful things to see within /proc. Related PostsSimple SSH (Linux) Command to Display the Number of CPUs (Processors) of Your Hosting [...]
November 19th, 2009 at 11:59 am
grep can get filenames, so this can be better:
grep processor /proc/cpuinfo | wc -l