NPROC(1)
β¨ nproc(1) β bestie edition β¨
okay so we're in the General Commands Manual, and this is the page for nproc π
she's a little icon, she tells you how many cores you can actually use. no cap.
πΈ NAME πΈ
nproc β print the number of cores available to the current process. If the OMP_NUM_THREADS or OMP_THREAD_LIMIT environment variables are set, then they will determine the minimum and maximum returned value respectively. periodt π
π¦ SYNOPSIS π¦
nproc [OPTIONS]...
π DESCRIPTION π
okay so literally what she does: she prints the number of cores available to the current process π«Ά
and here's the tea β if OMP_NUM_THREADS or OMP_THREAD_LIMIT are set in your environment, those two are gonna be in charge of the answer. OMP_NUM_THREADS sets the minimum returned value, and OMP_THREAD_LIMIT sets the maximum returned value, respectively. so basically they're the ones setting the floor and the ceiling, not her. iykyk β¨
π OPTIONS π
--allβ print the number of cores available to the system π₯ (like, the whole system, not just what your process gets to touch)--ignore<N> [default:0] β ignore up to N cores π she just pretends they're not there-h,--helpβ print help π (the classic)-V,--versionβ print version β
π VERSION π
v(uutils coreutils) 0.12.0
she's still growing, okay? π
π EXAMPLES π
display the number of available processing units: (the classic, the moment, the main character energy)
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
tw: the examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. π don't be mean to her about it, she's doing her best π
and that's the whole page bestie!! πΈ this was the NPROC(1) manual, dated 2026-09-25, filed under NPROC(1) at the bottom of the page like always π go forth and count your cores, slay π β¨
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms