Linux Command
nproc
Prints the number of available processor units.
Summary
nproc [OPTION]...
The main purpose
Options
--all Print the number of installed processors.
--ignore=N Exclude N processing units if possible.
--help Display help information and exit.
--version Display version information and exit.
example
[root@localhost ~]# nproc
8
Notice
-
This command is a command in the
GNU coreutilspackage. For related help information, please seeman -s 1 nproc,info coreutils 'nproc invocation'.


