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:

ADVERTISEMENTS

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

🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
12 comments… add one
  • risdiyanto May 21, 2011 @ 17:49

    simple n very usefull…
    :D

    • souri Feb 10, 2012 @ 14:13

      Tnx alot

  • Simon Aug 22, 2012 @ 17:47

    Thanks, was looking for this for a long time.

  • Mike Oct 31, 2012 @ 14:12

    Thank you :).

  • Alex Nov 26, 2012 @ 6:41

    Thanks so much. Just what I was looking for.

  • IT GUY Jan 2, 2013 @ 4:39

    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 Sep 21, 2013 @ 21:26

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

  • Ksingh Mar 25, 2013 @ 8:06

    Just what I was looking for.

    Thanks so much. :)

  • Gogu May 28, 2014 @ 18:42

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

    • Tor Aug 18, 2014 @ 11:00

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

  • Dakota Reno Sep 20, 2014 @ 16:01

    Works under Cygwin/Cygwin64 on version 1.7.30.

  • omid Mar 29, 2016 @ 10:50

    very useful

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.