count the processors

How many processors and cores this machine has, and what they are.

systemhardware

steps
  1. nproc

    the processors programs can use

  2. lscpu

    the model, cores, threads and caches

  3. grep -c ^processor /proc/cpuinfo

    the same count, from the kernel

  4. sysctl -n hw.ncpu

    macOS

commands used

nproclscpusysctl

Each has a page in lore: lore nproc opens it.