Back to Blog
Linux get cpuinfo6/12/2023 ![]() Ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmul Vulnerability Tsx async abort: Not affectedįlags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 Vulnerability Srbds: Unknown: Dependent on hypervisor status Vulnerability Spectre v2: Mitigation Full generic retpoline, STIBP disabled, RSB filling Vulnerability Spectre v1: Mitigation usercopy/swapgs barriers and _user pointer sanitization Vulnerability Spec store bypass: Vulnerable Vulnerability Mds: Vulnerable: Clear CPU buffers attempted, no microcode SMT Host state unknown Vulnerability L1tf: Mitigation PTE Inversion Vulnerability Itlb multihit: KVM: Mitigation: VMX unsupported Model name: Intel(R) Core(TM) i5-7360U CPU 2.30GHz Simply run: lscpuĪnd you’ll get output that looks something like this: Architecture: x86_64Īddress sizes: 36 bits physical, 48 bits virtual The lscpu command can also be used to display information about your CPU. ![]() ![]() The -m 1 option supplied to grep will return only the model of one of the CPUs – otherwise, you’ll get the model for each core on a multi-core CPU, and it’s almost certain that they will be the same. Which will output something like: model name : Intel(R) Core(TM) i5-7360U CPU 2.30GHz You probably only really want the model name of your CPU so you can compare it with others – you can limit this output by searching the output with the grep command: grep -m 1 'model name' /proc/cpuinfo My computer has two processor cores, so the information for the two processors is listed. Model name : Intel(R) Core(TM) i5-7360U CPU 2.30GHzįlags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec dtherm arat pln ptsīugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbdsĪddress sizes : 36 bits physical, 48 bits virtual The above command will output something like the following: processor : 0 The cat command is used to view the contents of the file stored at /proc/cpuinfo So, to view the information on the CPU installed on your system, you simply need to view the file which contains it: cat /proc/cpuinfo More information can be found by running: man proc The /proc directory is a virtual filesystem that contains information about system resources. One of the core concepts which Linux (generally) adheres to is that all aspects of the computer system are represented in the filesystem – including hardware. The type of CPU, how old it is, and how fast it is determines how responsive your computer is and how quickly it can do things. The CPU (Central Processing Unit) in your computer does all of the number crunching and processing and logic that your computer needs to do to, well, compute. Here’s how to display the CPU info for your computer on Linux from the Linux command line.
0 Comments
Read More
Leave a Reply. |