/usr/local/bin/nproc
nproc prints the number of processing units available to the current process, which may be less than the number of online processors.