To find out information about the CPU on a Red Hat Enterprise Linux (RHEL) system, you can use the lscpu
command. This command displays detailed information about the CPU architecture, including the number of CPUs, the number of cores, the number of threads, the CPU model, and the CPU frequency.
For example:
$ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8 On-line CPU(s) list: 0-7 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Platinum 8160 CPU @ 2.10GHz Stepping: 4 CPU MHz: 2100.000 BogoMIPS: 4199.98 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 30720K NUMA node0 CPU(s): 0-7
Alternatively, you can also use the /proc/cpuinfo
file to display information about the CPU. This file contains detailed information about the CPU .