On Linux, /proc/cpuinfo contains all of the processor information for all current processors in your box.
Display Number of Processors on Linux
If you've just upgraded your Linux box, or you are wondering how many processors a remote server has, there's a quick and dirty command you can use to display the number of processors.