nproc
Print number of processors. toybox
On Linux
Linux
nproc [-a]
-aShow all processors, not just ones this task can run on (--all)Several platforms
Print the number of processing units (normally CPUs) available.
Display the number of available processing units
nprocIdentifyDisplay the number of installed processing units, including any inactive ones
nproc --allIdentifyIf possible, subtract a given number of units from the returned value
nproc --ignore countIdentify