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 Deno in Ubuntu?

Leave a Reply

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

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