Query the x86 CPU directly and read features, vendor and raw leaves with a compact command-line tool. 07.07.2026 | reading time: 3 min Want to see what the processor really reports? The `cpuid` command issues the x86 CPUID instruction and decodes vendor, family, model, extended leaves and feature flags; it is a small, pragmatic tool for anyone who debugs hardware, tunes virtual machines or checks feature support on bare metal. Quick practical example Install and run a basic check with your package manager and then inspect the output: ``` sudo apt install -y cpuid sudo cpuid ``` Sample output snippet might look like: ``` CPU 0 vendor_id: GenuineIntel family: 6 model: 142 stepping: 10 model name: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm pni pclmulqdq ssse3 sse4_1 sse4_2 leaf 0x0: highest leaf 0x16 leaf 0x1: eax=0x000306a9 ebx=0x00100800 ecx=0x7ffafbff edx=0xbfebfbff ``` Note that the tool prints both human-friendly fields and raw leaf registers for deeper inspection. What to watch and why it matters The `cpuid` tool works only on x86/x86_64 CPUs and often needs root to access the CPU device; use it to detect virtualization (hypervisor bit), check AES/AVX/SSE support, read extended topology leaves for core/thread layout, or verify that a hypervisor has not masked instructions; it is excellent for comparison across machines and for reproducing low-level feature bugs. Where cpuid fits in your toolbox Pair `cpuid` with higher-level commands when you need context: use `/proc/cpuinfo` or `lscpu` for summary views, read model-specific registers with `msr-tools` when relevant, and consult `dmesg` or kernel logs if the kernel reports CPU feature changes; for scripting, parse `cpuid` output to gate feature-dependent builds or runtime checks. Final note and next steps Practical mastery of `cpuid` helps bridge hardware and software troubleshooting: start using it on different hosts, compare leaves and flags, and let the results drive configuration or VM feature selection; deepen your Linux skills and consider formal certification such as CompTIA Linux+ or LPIC-1 with focused preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. utilities troubleshooting virtualization infrastructure This page was created with the help of AI.