144

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!

5
  • Might be wrong, but that looks more like a single core doing hyperthreading, which presents two "logical cores".
    – Scaine
    Feb 14, 2011 at 20:31
  • @Scaine Do you know if there is a way to confirm that?
    – Toby
    Feb 14, 2011 at 20:34
  • 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.
    – Scaine
    Feb 14, 2011 at 20:41
  • what about a single command in the terminal? Jul 26, 2019 at 21:46
  • GUI: tool: sudo apt install hardinfo
    – jave.web
    Sep 15, 2023 at 10:49

9 Answers 9

145

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
2
  • 1
    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.
    – stdunbar
    Sep 6, 2019 at 17:31
  • 2
    grep could handle files as well as stdout, so you could simplify it like this: grep name /proc/cpuinfo | uniq
    – Lion
    Oct 13, 2019 at 10:37
122

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.

1
64

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

14
  • 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?)
    – Toby
    Feb 14, 2011 at 20:41
  • 3
    Actually, uname -m tells you whether the OS is 64 bits or not. On a 64-bits machine, it returns x86_64.
    – Lekensteyn
    Feb 14, 2011 at 20:50
  • 15
    my system monitor doesnt have this tab :-(
    – phil294
    Feb 22, 2017 at 12:34
  • 3
    That is no longer part of the System monitor. Now you can go Settings -> Details to see hardware info.
    – hat
    Feb 4, 2020 at 13:05
  • 3
    @hat, yes! Settings -> About for me!
    – JKHA
    Dec 14, 2020 at 15:24
10

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"
4
  • 1
    Sorry, what is the 'settings wheel'? Apr 16, 2015 at 10:36
  • 2
    @DenisGolomazov - sorry, i just edited the answer to explain
    – Ryan
    Apr 17, 2015 at 12:41
  • 1
    This no longer works on Ubuntu 16. You need to click on the item title "Details" from the "System Settings"
    – Eric
    Dec 27, 2017 at 23:03
  • work for me ubuntu 16.04 at top of the menu
    – DiaJos
    Sep 23, 2018 at 12:00
4

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

1

Use the uname -m or arch command from the terminal.

For a 64-bit processor and kernel, the command will output x86_64.

3
  • 1
    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. Feb 5, 2017 at 18:16
  • 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.
    – Kaz Wolfe
    Feb 5, 2017 at 18:26
  • 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.
    – Batwoman05
    Feb 5, 2017 at 19:04
1

The Hardware Lister application (lshw-gtk) from the default Ubuntu repositories is a user-friendly GUI application that displays detailed information about your computer's hardware including the model name and architecture (32-bit or 64-bit) of the CPU.

Simply select a category to obtain detailed information about a hardware component from the main interface.

Hardware Lister

0

The simplest way is from Launcher select System Settings-->Details:

System Settings About

This identifies both your CPU model number and whether 32-bit or 64-bit software is running. It also displays other useful information such as amount of RAM.

Now take your CPU model number in google search engine type 3630QM number of cores:

3630QM number of cores

Replace 3630QM with the model number you get from the first display.

All the other answers are great answers but if you really want the "simplest" way of doing this I believe this is the preferred method without opening a terminal session or installing new software.

-1

Use this:

cat /proc/cpuinfo | tail -1 | cut -d':' -f 2 | xargs

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .