Ubuntu – Getting information about CPU

cpucpuinfo

I am new to the world of Linux and Ubuntu. I want say get maximum information about CPU. (cpufreq , no. of cores, no. of threads per core, instruction set, size of caches, instruction set, virtualization etc.)

I would prefer a method which works on all Linux distributions over Ubuntu specific approaches.

lscpu seems to give only few info, I especially miss the model name here:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 69
Stepping:              1
CPU MHz:               989.531
BogoMIPS:              4788.74
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K
NUMA node0 CPU(s):     0-3

Running sudo lscpu returns same.

Best Answer

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.

Related Question