nproc
Shows the number of “processing units” available to the current process (which may be less than the number of cores online).