NPROC(1) General Commands Manual NPROC(1)

nprocget processor count

nproc [-a] [-i IGN]

Writes the number of available CPUs, followed by a newline, to the standard output stream. This can be modeled as ((_SC_NPROCESSORS_ONLN) - IGN, ).

, --all
Writes the number of configured CPUs, which may be more than the available ones on some platforms. This corresponds to the _SC_NPROCESSORS_CONF sysconf(3) value.
, --ignore=IGN
Ignore (subtract) up to this many CPUs, if available (default ).

sysconf(3)

Compatible with the GNU system. The short flags are an extension.

November 23, 2022 voreutils pre-v0.0.0-latest