How can you find specific information about your processor? How to check what CPU you have got? If you want to get information about CPU on your computer... I will show you how to find it using two methods.
1. Get CPU parameters using text information from /proc directory
All information is accessible via normal text file. All you need to obtain processor information is simply read the file /proc/cpuinfo, just like that:
cat /proc/cpuinfo
and you should get human readable output similar to this:
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5310 @ 1.60GHz stepping : 7 cpu MHz : 1600.057 cache size : 4096 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 5 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu de tsc msr pae cx8 apic cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc pni ssse3 hypervisor bogomips : 3207.60 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: [...]
In /proc/cpuinfo you should find all needed information about CPU that you have, including:
- CPU name
- number of CPUs
- cpu type (model, family)
- CPU cache sizes and many, many more...
2. Obtain information on CPU from lshw command
When you need to get information about your hardware lshw command is very useful. I would even say that it is irreplaceable. To get information on CPU enter:
lshw -class cpu
If you don't need detailed output you can run lshw like that:
lshw -class cpu -short
Sample output:
H/W path Device Class Description ======================================== /0/1 processor Intel(R) Xeon(R) CPU E5310 @ 1.60GHz /0/1/5.1 processor Logical CPU /0/1/5.2 processor Logical CPU /0/1/5.3 processor Logical CPU /0/1/5.4 processor Logical CPU /0/2 processor Intel(R) Xeon(R) CPU E5310 @ 1.60GHz /0/2/5.1 processor Logical CPU /0/2/5.2 processor Logical CPU /0/2/5.3 processor Logical CPU /0/2/5.4 processor Logical CPU
Latesha wrote
Sharp thniinkg! Thanks for the answer.