How to find out CPU information on Red Hat Linux (RHEL)

See all Redhat/CentOS/Fedora Core related FAQ
I am a new RHEL (RedHat Enterprise Linux) system administrator. How do I find out information about my CPU like the number of cores, sockets, CPU type, make and other features provided by Intel or AMD using the command line options on RHEL 5.x/6.x/7.x?

CPU is an acronym for the central processing unit. It is an essential part of your desktop or server. The CPU controls the other parts of the computer by sending or reading instructions. Your CPU reads the list of instructions from a computer program. Most CPUs used in RHEL servers or desktops/ laptops made by either AMD or Intel. But you may have a server that is powered by IBM, ARM and other CPUs too. Hence, it is vital to find out information about your CPU on RHEL.

Find out CPU information on Red Hat Enterprise Linux (RHEL)

To find information about the CPU architecture of RHEL based system, run:
Sample outputs:

Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              16
On-line CPU(s) list: 0-15
Thread(s) per core:  2
Core(s) per socket:  8
Socket(s):           1
NUMA node(s):        1
Vendor ID:           AuthenticAMD
CPU family:          23
Model:               1
Model name:          AMD Ryzen 7 1700 Eight-Core Processor
Stepping:            1
CPU MHz:             1546.617
CPU max MHz:         3000.0000
CPU min MHz:         1550.0000
BogoMIPS:            5988.15
Virtualization:      AMD-V
L1d cache:           32K
L1i cache:           64K
L2 cache:            512K
L3 cache:            8192K
NUMA node0 CPU(s):   0-15
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca

Red Hat display CPU information

Another option is to type cat command:
cat /proc/cpuinfo
Find out CPU information on Red Hat Linux RHEL

RHEL show information about my CPU

Let us find out number of physical CPUs in your server, run:
grep /proc/cpuinfo | sort -u | wc -l
List number of cores per CPU for Red Hat Linux:
grep cpu.cores /proc/cpuinfo | sort -u
Finally, let us print number of logical processors for RHEL:
grep processor /proc/cpuinfo | wc -l
Another option is to run dmidecode command sudo dmidecode -t4
Getting redhat cpu info using command line

How to determine number of CPU sockets on my Red Hat Linux

Use the grep command along with wc command and sort command as follows:
grep /proc/cpuinfo | sort -u | wc -l
OR use the lscpu command:
lscpu | grep -i "socket(s)"

Red hat linux determine number of CPU sockets on a system

RHEL determine number of CPU sockets on my server or desktop


This page explained how to find out CPUs, sockets and other information on Red Hat Enterprise Linux (RHEL) using the command line. For more information please see this URL.

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

2 comments… add one
  • Elias Apr 12, 2017 @ 15:06

    All you need is lscpu on RHEL 6 or 7:

    • 🛡️ Vivek Gite (Author and Admin) Vivek Gite Jan 15, 2019 @ 15:08

      Yes, updated page with images and more commands such as lscpu. Please use our forum if you need further help.

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.