Find out the number of CPU cores on Linux

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

asked Aug 5, 2013 by anonymous

1 Answer

Use the command nproc.

$ nproc

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

answered Aug 5, 2013 by anonymous
edited Aug 8, 2013 by SA

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...