20

I am new to the world of Linux and Ubuntu. I want say get maximum information about CPU. (cpufreq , no. of cores, no. of threads per core, instruction set, size of caches, instruction set, virtualization etc.)

I would prefer a method which works on all Linux distributions over Ubuntu specific approaches.

lscpu seems to give only few info, I especially miss the model name here:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 69
Stepping:              1
CPU MHz:               989.531
BogoMIPS:              4788.74
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K
NUMA node0 CPU(s):     0-3

Running sudo lscpu returns same.

15
  • 6
    You can do cat /proc/cpuinfo.
    – edwinksl
    Aug 3, 2016 at 11:34
  • Err… But, everything you listed is being shown by lscpu. So what information do you need additionally?
    – Hi-Angel
    Aug 3, 2016 at 11:51
  • @Hi-Angel , it doesn't show CPU chip info i.e.: i7 or i5 and model number.
    – foxtrot9
    Aug 3, 2016 at 12:08
  • @foxtrot9 But lscpu on my machine does show the model number. I am not sure why yours doesn't.
    – edwinksl
    Aug 3, 2016 at 12:11
  • 3
    You could also try sudo lshw -c cpu
    – Byte Commander
    Aug 3, 2016 at 12:16

1 Answer 1

28

You can check the model no by executing

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

Output:

 model name      : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz

To Count number of CPUs:

cat /proc/cpuinfo | grep processor

Output :

2

To check the number of cores !

cat /proc/cpuinfo | grep 'core id'
core id         : 0
core id         : 1

$hardinfo | less


$nproc  / prints out the number of processing units

For Windows Users Use CPU-Z here

For more info described for both windows and linux here.

You must log in to answer this question.

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