Print the number of processing units available
nproc [OPTION]...
--all Print the number of installed processors.
--ignore=N If possible, exclude N processing units.
--help Display help message and exit.
--version Display version information and exit.
[root@localhost ~]# nproc
8
GNU coreutils package. For more information, see man -s 1 nproc or info coreutils 'nproc invocation'.