Find out the number of CPU cores on Linux

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.

Answered by anonymous.

Leave a Reply

Your email address will not be published. Required fields are marked *