NAME
nproc
—
get processor count
SYNOPSIS
nproc |
[-a ] [-i
IGN] |
DESCRIPTION
Writes the number of available CPUs, followed by a newline, to the
standard output stream. This can be modeled as
max(sysconf(_SC_NPROCESSORS_ONLN
)
- IGN,
1).
OPTIONS
-a
,--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. -i
,--ignore
=IGN- Ignore (subtract) up to this many CPUs, if available (default 0).
SEE ALSO
STANDARDS
Compatible with the GNU system. The short flags are an extension.