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