[TriLUG] Dual core question

Lee Fickenscher elfick at mac.com
Mon May 23 15:18:48 EDT 2005


Scott G. Hall wrote:
> Lee Fickenscher wrote:
> 
>> I don't have any dual core boxes, but on linux couldn't you do something
>> like:
>>
>> cat /proc/cpuinfo | grep -c processor
>>
>> to get a core count? -Lee
> 
> You need to modify that:
> 
> cat /proc/cpuinfo | cut -f1 -d: | grep -c processor
> 
How about:
cat /proc/cpuinfo | grep -c ^processor



More information about the TriLUG mailing list