Howto: Linux detect or find out a dual-core cpu

Q. How do I find out my cpu is a dual-core cpu on Cent Os Linux?

Advertisement

A. Following are are few tips for identifying whether a cpu is dual-core or not. Please note there are few factors that might give your wrong result. For example wrong kernel image installed.

Task: Display CPU information

Type the following command to get overall cpu info:
$ less /proc/cpuinfo

Task: Identif whether a cpu is dual-core or not

$ grep cores /proc/cpuinfo
Output:

cpu cores       : 2

Or type following command:
$ grep "core id" /proc/cpuinfo

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

5 comments… add one
  • Girish Jun 25, 2007 @ 10:25

    Hi.. Can u plz say how to find the details in windows too??

  • smuck Feb 25, 2009 @ 3:38

    yawn….
    my computer properties

  • demonhill Jun 16, 2009 @ 3:08

    Hi,
    I got this (below) in my dual cores… does the result is correct
    executed this grep cores /proc/cpuinfo and it produces below two lines …

    cpu cores : 1
    cpu cores : 1

    :)
    Demonhill

  • bianggio22 Oct 19, 2009 @ 16:08

    I have a Dell power edge 2650 intel xeon dual-core server, i’ve runned these commands and i’ve got these, my question is these output command is OK?

    root@shadow:~# grep -i core /proc/cpuinfo
    core id : 0
    cpu cores : 1
    core id : 0
    cpu cores : 1
    core id : 0
    cpu cores : 1
    core id : 0
    cpu cores : 1
    root@shadow:~# grep cores /proc/cpuinfo
    cpu cores : 1
    cpu cores : 1
    cpu cores : 1
    cpu cores : 1
    root@shadow:~# grep “core id” /proc/cpuinfo
    core id : 0
    core id : 0
    core id : 0
    core id : 0

  • Vivek Aug 3, 2011 @ 14:04

    How you come to Know Whether it is dual or quad core CPU?

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.