Skip to content

Get the number of processors in Linux and MacOS

This command queries the configured processor values using the getconf command.

getconf _NPROCESSORS_ONLN

Example

anand@AnandFolio:~$ getconf _NPROCESSORS_ONLN
4
See also  How to Install Kubectl in Ubuntu?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.