# of processors

J. Hughes jeffdh at u.washington.edu
Mon Jan 20 10:46:29 PST 2003


This should do the job:

cat /proc/cpuinfo | egrep ^processor | wc -l

On Mon, 20 Jan 2003, Scholz Matthew wrote:

> Let us just say that I need to know how many
> processors a linux machine has using.  Let us also say
> that I'm not sure exactly how to retrieve said
> information.
>
> Let us add for the sake of argument, that I would like
> a single command line argument which returns some
> useful sembalance of aforementioned processorial
> quantity.
>
> Is there such a beast?
>
> Thanx
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>



More information about the Linux mailing list