commands.sh

nproc

all

Print the number of processing units (normally CPUs) available.

More info →

Examples (3)

Display the number of available processing units

Display the number of installed processing units, including any inactive ones

nproc --all

If possible, subtract a given number of units from the returned value

nproc --ignore count
made by @shridhargupta | data from tldr-pages