cpu

i need to know the command to find    the numer of  cpu in the server I mean how many cpus are there in a server running  unix, linux

thnks
taazAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fosiul01Commented:
top command wills how you how many cpu you got
there is another one

i will give you the name 5 min
0
edster9999Commented:
cat /proc/cpuinfo | grep processor | awk '{count++} END {print count}'

This will give the CPU count but it will list dual core type processors as '2' as that is sort of what they are inside.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

fosiul01Commented:
sorry, some one already said this before me
0
Deepak KosarajuDevOps EngineerCommented:
use lshw -class processor
0
Deepak KosarajuDevOps EngineerCommented:

[root@pro02 ~]# lshw -class processor 
  *-cpu                   
       description: CPU
       product: Genuine Intel(R) CPU            1500  @ 2.00GHz
       vendor: Intel Corp.
       physical id: 1
       bus info: cpu@0
       version: 6.14.8
       serial: 0000-06E8-0000-0000-0000-0000
       slot: CPU Socket #0
       size: 1996MHz
       capacity: 1996MHz
       width: 32 bits
       clock: 133MHz
       capabilities: fpu fpu_exception wp pse tsc msr mce cx8 mtrr pge cmov mmx fxsr sse sse2 ss constant_tsc up pni
[root@pro02 ~]# lshw -class processor | grep -i "bus info"
       bus info: cpu@0    
[root@pro02 ~]# 

Open in new window

0
taazAuthor Commented:
thanks all
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.