Getting Processor Information

379,631

Solution 1

It's often overlooked, so worth a shot. Sorry if this is insultingly obvious :

System Preferences

Alt-F2, then gnome-system-monitor

Also, when I ran sudo lshw | grep -i cpu, I see a line which says cpus=2.

enter image description here

Solution 2

To get the Processor model use the below command in a terminal.

cat /proc/cpuinfo  | grep 'name'| uniq

To get the information about number of processors

cat /proc/cpuinfo  | grep process| wc -l

Solution 3

The simplest way to do this is to use the command created for that, lscpu:

user@host:~$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 55
Model name:            Intel(R) Celeron(R) CPU  N2840  @ 2.16GHz
Stepping:              8
CPU MHz:               697.301
CPU max MHz:           2582,3000
CPU min MHz:           499,8000
BogoMIPS:              4331.60
Virtualization:        VT-x
L1d cache:             24K
L1i cache:             32K
L2 cache:              1024K
NUMA node0 CPU(s):     0,1
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 rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl 
xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor 
ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt  
tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb tpr_shadow vnmi 
flexpriority ept vpid tsc_adjust smep erms dtherm ida arat

This command will tell you your chipset's characteristics as well as any supported instructions (or flags) in an easy-to-use and simple-to-read manner.

Solution 4

In ubuntu 14.04 desktop, the system monitor tool no longer has a "System" tab. You should see roughly the same screen like this:

  1. click the settings wheel (to clarify: the taskbar icon in the absolute upper-right hand corner of the screen: enter image description here)
  2. choose "About this Computer"

Solution 5

You can just use this : more /proc/cpuinfo in your command line.

Then you faced with something like this :

enter image description here

You can use this for more information :

enter image description here

Share:
379,631

Related videos on Youtube

Toby
Author by

Toby

I am a developer who focuses mainly on web technologies. I also run a handful of websites covering a wide range of topics. One of my favourites because it annoys so many people is howoldistheinter.net where I make the distinction between www and the internet. My company specialise in Ruby development, you can hire us for a Ruby project if you like. On my site I write Ruby articles amongst other posts.

Updated on September 17, 2022

Comments

  • Toby
    Toby over 1 year

    I have just ran lshw to get some information about a machine I know nothing about, and I just wanted to confirm something.

    Does this basically mean it is a dual core 64 bit processor that is installed?

    *-logicalcpu:0
        description: Logical CPU      
        physical id: 0.1          
        width: 64 bits          
        capabilities: logical       
    *-logicalcpu:1            
        description: Logical CPU           
        physical id: 0.2              
        width: 64 bits           
        capabilities: logical
    

    Looking further down I see this

     *-cpu:1
          physical id: 1
          bus info: cpu@1
          version: 6.7.6
          serial: 0001-0676-0000-0000-0000-0000
          size: 3150MHz
          capabilities: vmx ht
          configuration: id=0
        *-logicalcpu:0
             description: Logical CPU
             physical id: 0.1
             capabilities: logical
        *-logicalcpu:1
             description: Logical CPU
             physical id: 0.2
             capabilities: logical
    

    Which makes me almost certain it is dual core but not convinced on the 64 bit.

    Any help for this n00b would be greatly appreciated!

    • Scaine
      Scaine about 13 years
      Might be wrong, but that looks more like a single core doing hyperthreading, which presents two "logical cores".
    • Toby
      Toby about 13 years
      @Scaine Do you know if there is a way to confirm that?
    • Scaine
      Scaine about 13 years
      I'm no expert on lshw, Toby, sorry. I've amended my answer to reflect the output from my core2Duo processor (no hyperthreading). Hope this helps.
    • Charlie Parker
      Charlie Parker over 4 years
      what about a single command in the terminal?
  • Toby
    Toby about 13 years
    Ha, thanks - that was overlooked! That has listed two processors both Core 2 Duos @3.16GHz. What it doesn't do it confirm if this is a 64 bit machine or not.. (or am I being dense and that fact is staring me in the face?)
  • Scaine
    Scaine about 13 years
    uname -r should help with that, surely? Or the same screenshot shows that I'm running 32-bit (my kernel is "generic").
  • Toby
    Toby about 13 years
    I didn't set up the machine in the first place and I think the person who did erred on the site of caution and may have went for generic when they could have went higher. Thanks so much for your help. I have all the information I need now!
  • Lekensteyn
    Lekensteyn about 13 years
    Actually, uname -m tells you whether the OS is 64 bits or not. On a 64-bits machine, it returns x86_64.
  • Scaine
    Scaine about 13 years
    I'd stick with generic myself, Toby. Arguments for both sides... AGAINST : blog.pault.ag/post/3107062816/… and FOR : jldugger.livejournal.com/41896.html. Unless you're a developer or heavy power user video editor type thingymajig... 32-bit is fine for a while longer.
  • Scaine
    Scaine about 13 years
    @Lekensteyn : Never knew that! You learn something new every day!
  • Lekensteyn
    Lekensteyn about 13 years
    @Scaine: 64 bits vs 32 bits is an off-topic discussion here. 64 bits applications cannot run on a 32 bits OS, but the reverse is possible. As 64 bits is the future (even if it is available since 2000), I'll stick to an 64 bits OS and recommend others 64 bits as well.
  • Scaine
    Scaine about 13 years
    Horses for courses. I'm with you actually - the next build I do will be 64-bit, but all I'm saying is that 32-bit is still very much alive and kicking. But you're quite right. This is OT. :-)
  • Kees Cook
    Kees Cook about 13 years
    If you stick with 32bit, at least use the -generic-pae kernel so you can get access to all your memory and gain the NX bit for security.
  • Dennis Golomazov
    Dennis Golomazov almost 9 years
    Sorry, what is the 'settings wheel'?
  • Ryan
    Ryan almost 9 years
    @DenisGolomazov - sorry, i just edited the answer to explain
  • WinEunuuchs2Unix
    WinEunuuchs2Unix about 7 years
    Those commands output "x86_64" which identifies that 64-bit software is being used. However, it doesn't answer question of whether or not there is a dual core processor. Using sudo lshw -class CPU will provide model number of processor which can be googled to get full specifications of that chip which could be single core, hyper-threaded.
  • Kaz Wolfe
    Kaz Wolfe about 7 years
    Note, though, that with this result, your system will not output x86_64 if you do not have the 64-bit kernel installed on your system.
  • Batwoman05
    Batwoman05 about 7 years
    Thank you @KazWolfe for the edit. I was searching for this answer to run some Benchmarking suites on different processors, and came across these commands.
  • phil294
    phil294 about 7 years
    my system monitor doesnt have this tab :-(
  • Eric
    Eric over 6 years
    This no longer works on Ubuntu 16. You need to click on the item title "Details" from the "System Settings"
  • Webwoman
    Webwoman over 5 years
    work for me ubuntu 16.04 at top of the menu
  • Trect
    Trect over 5 years
    I am using remote server
  • Trect
    Trect over 5 years
    How do I do it using a temrinal
  • stdunbar
    stdunbar over 4 years
    For future Googlers - this command doesn't work on ARM processors as the output is very different in at least 18.04. The lscpu command below works well.
  • Lion
    Lion over 4 years
    grep could handle files as well as stdout, so you could simplify it like this: grep name /proc/cpuinfo | uniq
  • hat
    hat about 4 years
    That is no longer part of the System monitor. Now you can go Settings -> Details to see hardware info.
  • JKHA
    JKHA over 3 years
    @hat, yes! Settings -> About for me!