Fundamentals 7 min read

How to Inspect CPU Details on Linux: 13 Essential Commands

This guide lists thirteen Linux commands and tools—including /proc/cpuinfo, cpufreq-info, cpuid, dmidecode, hardinfo, i7z, likwid, lscpu, lshw, lstopo, numactl, and x86info— that reveal comprehensive CPU hardware information such as vendor, model, frequencies, cores, caches, and topology.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How to Inspect CPU Details on Linux: 13 Essential Commands
Depending on your needs, there are many CPU processor details you may want to know, such as vendor name, model name, clock frequency, number of sockets/cores, L1/L2/L3 cache configuration, and available processor capabilities (e.g., hardware virtualization, AES, MMX, SSE). In Linux, numerous command‑line or GUI tools can display this hardware information. 1. /proc/cpuinfo The simplest method is to view the virtual file /proc/cpuinfo , which shows the available CPU hardware configuration. <code>$ more /proc/cpuinfo</code> By examining this file you can identify the number of physical processors (sockets), cores per CPU, CPU flag registers, and other details. 2. cpufreq-info The cpufreq-info command (part of the cpufrequtils package) gathers and reports CPU frequency information from the kernel/hardware, showing current frequency, allowed minimum/maximum frequencies, and policy/statistics. Example for CPU #0: <code>$ cpufreq-info -c 0</code> 3. cpuid The cpuid command acts as a dedicated CPU information tool, using the CPUID instruction to display detailed hardware data, including processor type/family, extended instruction sets, cache/TLB configuration, and power‑management features. <code>$ cpuid</code> 4. dmidecode The dmidecode command reads DMI (Desktop Management Interface) data from the BIOS to provide detailed system hardware information, including CPU vendor, version, flag registers, max/current clock speed, enabled core count, and cache configuration. <code>$ sudo dmidecode</code> 5. hardinfo hardinfo is a GUI‑based system information tool that presents an easy‑to‑understand overview of CPU hardware along with other system components. <code>$ hardinfo</code> 6. i7z i7z is a real‑time reporting tool for Intel Core i3, i5, and i7 CPUs, showing per‑core information such as turbo boost status, frequency, power state, and temperature. It runs either in an ncurses console or a Qt GUI. <code>$ sudo i7z</code> 8. likwid topology likwid (Like I Knew What I'm Doing) is a command‑line tool for measuring, configuring, and displaying hardware characteristics. Its topology feature shows CPU hardware (threads, caches, NUMA) layout and can identify processor families (e.g., Intel Core 2, AMD Shanghai). 9. lscpu The lscpu command presents the content of /proc/cpuinfo in a more user‑friendly format, summarizing CPUs, cores, sockets, and NUMA nodes. <code>$ lscpu</code> 10. lshw lshw is a comprehensive hardware query tool that requires root privileges because it reads DMI data from the BIOS. It reports total and available core counts but may omit some details such as L1/L2/L3 cache sizes. A GTK version (lshw‑gtk) is also available. <code>$ sudo lshw -class processor</code> 11. lstopo The lstopo command (included in the hwloc package) visualizes the topology of CPUs, caches, memory, and I/O devices, helping identify processor and NUMA structures. <code>$ lstopo</code> 12. numactl Originally developed to configure NUMA scheduling and Linux processor memory layout, numactl can also display NUMA topology information via the command line. <code>$ numactl --hardware</code> 13. x86info x86info is a command‑line utility that displays information for x86‑based CPUs, including model, thread/core count, clock speed, TLB cache configuration, and supported feature flags. <code>$ x86info --all</code>
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxCPUHardwarecommandsdmidecodeprocfsSystem Information
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.