2018-09-02 09:39:40 +01:00
|
|
|
# nproc
|
|
|
|
|
|
|
|
> Print the number of processing units (normally CPUs) available.
|
2021-03-30 14:56:51 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/nproc-invocation.html>.
|
2018-09-02 09:39:40 +01:00
|
|
|
|
|
|
|
- Display the number of available processing units:
|
|
|
|
|
|
|
|
`nproc`
|
|
|
|
|
|
|
|
- Display the number of installed processing units, including any inactive ones:
|
|
|
|
|
|
|
|
`nproc --all`
|
|
|
|
|
|
|
|
- If possible, subtract a given number of units from the returned value:
|
|
|
|
|
|
|
|
`nproc --ignore {{count}}`
|