nproc(1)
π nproc(1) β General Commands Manual π
okay bestie, say hi to nproc, the lil cutie from the General Commands Manual section of the manual. she counts cores. that's the whole job. and she ate. β¨
πΈ NAME πΈ
nproc β print the number of cores available to the current process. and listen, if the OMP_NUM_THREADS or OMP_THREAD_LIMIT environment variables are set, then they will determine the minimum and maximum returned value respectively. so basically the env vars get a vote too. π
π¦ SYNOPSIS π¦
nproc [--all] [--ignore] [-h|--help] [-V|--version]
β¨ DESCRIPTION β¨
bestie it literally just prints the number of cores available to the current process. that's it, that's the vibe. π
and fr fr, if the OMP_NUM_THREADS or OMP_THREAD_LIMIT environment variables are set, then they will determine the minimum and maximum returned value respectively. so OMP_NUM_THREADS sets your floor, OMP_THREAD_LIMIT sets your ceiling, and nproc lives somewhere in between. iconic behaviour honestly. π
π OPTIONS π
--allβ print the number of cores available to the system. like, the whole system, not just what your lil process is allowed to touch. main character energy, system-wide. π«Ά--ignore<N>β ignore up toNcores. yes literally just subtract up toNof them from the count. π-h,--helpβ Print help. she's helpful AND pretty. π-V,--versionβ Print version. gotta know which era ofnprocyou're living in. β
π VERSION π
v(uutils coreutils) 0.7.0
no cap: the description in NAME and the description in DESCRIPTION say the exact same thing. that's not me being lazy, that's just how the page is. keeping it real. π
and that's the whole page, bestie!! this one's nproc (uutils coreutils) 0.7.0 β shoutout to the uutils coreutils girlies for the 0.7.0 release, mwah π go count some cores, ily, bye!! π¦πβ¨
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
- fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms