Or try:

           grep -c ^processor /proc/cpuinfo



Rick Troth wrote:

Try this:

        cat /proc/cpuinfo | grep '^processor' | wc -l

Dunno about "inactive" -vs- "active".

-- R;

On Tue, 27 Sep 2005, Phil Tully wrote:



On linux how do you display the number of cpu's the kernel has
active/inactive?

Phil Tully



----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390





----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to