Linux tutorial

In this article I show how to find CPU model on Linux computer.

If you are unsure what CPU your Linux computer uses, you can easily check it through the /proc/cpuinfo file. Simply enter in your terminal:

$ cat /proc/cpuinfo | less

The cpuinfo file contains all information you need to know about your CPU. You will find there CPU manufacturer and model, as well as additional useful information.

Here is a sample output:

processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 86
model name    : Intel(R) Xeon(R) CPU D-1521 @ 2.40GHz
stepping    : 3
cpu MHz        : 800.250
cache size    : 6144 KB
physical id    : 0
siblings    : 8
core id        : 0
cpu cores    : 4
apicid        : 0
initial apicid    : 0
fpu        : yes
fpu_exception    : yes
cpuid level    : 20
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap
bogomips    : 4799.91
clflush size    : 64
cache_alignment    : 64
address sizes    : 46 bits physical, 48 bits virtual
power management:

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 6
model        : 86
model name    : Intel(R) Xeon(R) CPU D-1521 @ 2.40GHz

(...)

processor    : 7
vendor_id    : GenuineIntel
cpu family    : 6
model        : 86
model name    : Intel(R) Xeon(R) CPU D-1521 @ 2.40GHz

(...)

One thing that may be interesting for you is that the same block repeats itself many times. Each such block represents single core of your processor, or another processors if your computer has multiple CPUs.

In my case, I have 4 core processor with hyper-threading, therefore I get 8 blocks (numbering starts from zero).

As you can see, /proc/cpuinfo contains easily readable information about CPU model on Linux, as well other useful information.