

After all, it reads from the /proc/cpuinfo file so why not read it directly? cat /proc/cpuinfo

You are not obligated to use the lscpu command. Checking the contents of /proc/cpuinfo file It tells you the architecture, number of cores, manufacturer and a lot more details that you may not be interested in. Tsx async abort: Not you can see, it goes in too much details on the CPU. Spectre v2: Mitigation Enhanced IBRS, IBPB conditional, RSB fillin Spectre v1: Mitigation usercopy/swapgs barriers and _user pointer Spec store bypass: Mitigation Speculative Store Bypass disabled via prctl Itlb multihit: KVM: Mitigation: VMX unsupported Id movdiri movdir64b fsrm md_clear flush_l1d arch_capab Gsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseĮd adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetīv1 xsaves arat umip pku ospke gfni vaes vpclmulqdq rdp Lt invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced fs _freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 xĢapic movbe popcnt tsc_deadline_timer aes xsave avx f16Ĭ rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fau Nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known X pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good Model name: 12th Gen Intel(R) Core(TM) i5-12400įlags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mcĪ cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall n lscpuĪnd I use lscpu quite often with my VMs as you get few cores: lscpuĪddress sizes: 45 bits physical, 48 bits virtual

The lscpu utility gathers CPU architecture info from sysfs and /proc/cpuinfo and can be found on most of the Linux distros. Let me share various ways you can get processor details in Ubuntu command line. Some of them show detailed output while some show only the essential ones. And there are various kinds of commands and tools available for this purpose. There are all kinds of processor information you can look for. Curious about the brain of your computer? What kinds of architecture it has, and how many CPU cores it has? Who's the manufacturer? What's the model?
