There are two ways to gather information about CPU in Linux.
1. You can check file /proc/cpuinfo to CPU information as below. You may see following output which contains most vital information about CPU.
# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Pentium(R) CPU G2010 @ 2.80GHz stepping : 9 microcode : 0x19 cpu MHz : 2793.668 . . .
2. Alternatively, you can use lscpu command to get similar information. Before that you need to install following package.
# yum install util-linux -y
# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 58 Model name: Intel(R) Pentium(R) CPU G2010 @ 2.80GHz . . .