Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

nproc

v(uutils coreutils) 0.8.0
nproc [OPTIONS]...

Affiche le nombre de cœurs disponibles pour le processus actuel. Si les variables d’environnement OMP_NUM_THREADS ou OMP_THREAD_LIMIT sont définies, elles détermineront respectivement la valeur minimale et maximale retournée.

Options

--all

affiche le nombre de cœurs disponibles pour le système

--ignore=<N>

ignore jusqu’à N cœurs

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

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}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.