How to find out CPU information on CentOS Linux 7.x

How to find out CPU information on CentOS Linux 7.x

To find out information about the CPU on a CentOS Linux 7.x system, you can use the lscpu command. This command displays information about the CPU architecture, number of CPUs, threads, cores, and other details.

To display information about the CPU, run the lscpu command without any arguments. The syntax is as follows:

lscpu
S‮o‬urce:www.lautturi.com

This will display a table of information about the CPU, including the architecture, model name, number of CPUs, threads, cores, and cache size.

For example, the output might look something like this:

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:               60
Model name:          Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             2299.999
BogoMIPS:            6390.00
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3

You can use the grep command to search for specific information in the output of lscpu. For example, to display the model name of the CPU, you can use the following command:

lscpu | grep "Model name"

This will display the model name of the CPU, as shown in the following example output:

Model name:
Created Time:2017-10-16 14:38:46  Author:lautturi