Skip to content

Poop Code

  • Home
  • Linux

Get the number of processors in Linux and MacOS

October 18, 2024 by poopcode

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

getconf _NPROCESSORS_ONLN

Example

anand@AnandFolio:~$ getconf _NPROCESSORS_ONLN
4
Categories Linux
Get current user in shell
unable to create listener: Error listen tcp4 0.0.0.0:443: bind: permission denied – Fix in Ubuntu
© 2025 Poop Code • Built with GeneratePress