Find out the number of CPU cores on Linux

Posted on In QA

How to find out the number of CPU cores on a Linux host.

Use the command nproc.

$ nproc

nproc – print the number of processing units available: man page of nproc.

Leave a Reply

Your email address will not be published.