# of processors
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
> 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
> Is there such a beast?
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
More information about the Linux