≡ Menu

Ubuntu: Find CPU Information / Speed

How do I find out CPU Information such as speed, processor, and cache under Ubuntu Linux operating systems?

You need to use the following command to display all information about the CPU (open terminal and type the following command at bash prompt):
$ cat /proc/cpuinfo
Sample outputs:

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
stepping	: 11
cpu MHz		: 1596.000
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 4
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow vnmi flexpriority
bogomips	: 4800.18
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:
....
..
processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
stepping	: 11
cpu MHz		: 1596.000
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 4
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow vnmi flexpriority
bogomips	: 4800.30
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

To count processor (including cores), enter:
grep -c processor /proc/cpuinfo

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 11 comments… add one }

  • risdiyanto May 21, 2011, 5:49 pm

    simple n very usefull…
    :D

    • souri February 10, 2012, 2:13 pm

      Tnx alot

  • Simon August 22, 2012, 5:47 pm

    Thanks, was looking for this for a long time.

  • Mike October 31, 2012, 2:12 pm

    Thank you :).

  • Alex November 26, 2012, 6:41 am

    Thanks so much. Just what I was looking for.

  • IT GUY January 2, 2013, 4:39 am

    I was wondering if there is a way to update the file. It seems to update on reboot, but is there a way to update it without rebooting?

    • Sameer September 21, 2013, 9:26 pm

      A user doesn’t control any of the ‘/proc/*’ file.

  • Ksingh March 25, 2013, 8:06 am

    Just what I was looking for.

    Thanks so much. :)

  • Gogu May 28, 2014, 6:42 pm

    Hey I would LIke to know what does the Processor : 0 and Processor : 3 mean exactly

    • Tor August 18, 2014, 11:00 am

      The example cpu has 4 cores, each of which is listed as a ‘processor’ numbered from 0 to 3.

  • Dakota Reno September 20, 2014, 4:01 pm

    Works under Cygwin/Cygwin64 on version 1.7.30.

Leave a Comment