$ grep -c ^processor /proc/cpuinfo

this works for a Linux based system, other UNIX systems may have other way(s) to check the number of CPUs.

View this command to comment, vote or add to favourites
View all commands by gerard

commandlinefu.com

by David Winterbottom (codeinthehole.com)



Tags: