NPROC(1)

NAME
nproc - print the number of processors

SYNOPSIS
nproc [-a] [-i #]

DESCRIPTION
The nproc utility is used to print the number of processors available to the current process, unless the -a flag is specified.

The available flags are:

-a  Count all processors available on the system.

-i #
    The result is decreased by #, but never below 1.

COMPATIBILITY
This program is NOT compatible with nproc as found in GNU coreutils.

SEE ALSO
cpuset(1)

AUTHORS
-nosplit Mateusz Guzik <mjg@FreeBSD.org> wrote the original program for FreeBSD and Piotr Paweł Stefaniak <pstef@FreeBSD.org> wrote the original of this page.