Howto display the number of processors in Linux

Posted by suvi under Tricks

If you’ve just bought a new desktop,laptop or server and the box says the box is powered by 2 processors, you can actually verify that.

Here’s how to display the number of processor of your linux box.

Simply issue the following command as root

# cat /proc/cpuinfo | grep processor

Everything in linux is files. This command simply retrieves the number of processors that linux detected from /proc/cpuinfo and displays it. Usually, the processor number comes at the first set of line from issuing the command.

Read more at DebianAdmin 

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word