Getting information about CPU
Solution 1:
You can check the model no by executing
cat /proc/cpuinfo | grep 'model name' | uniq
Output:
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
To Count number of CPUs:
cat /proc/cpuinfo | grep processor
Output :
2
To check the number of cores !
cat /proc/cpuinfo | grep 'core id'
core id : 0
core id : 1
$hardinfo | less
$nproc / prints out the number of processing units
For Windows Users Use CPU-Z here
For more info described for both windows and linux here.