NPROC(1) General Commands Manual NPROC(1)

# [NAME](#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.

# [SYNOPSIS](#SYNOPSIS)

**nproc** \[OPTIONS]...

# [DESCRIPTION](#DESCRIPTION)

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.

# [OPTIONS](#OPTIONS)

[**--all**](#all)

print the number of cores available to the system

[**--ignore** *&lt;N&gt;* \[default: 0\]](#ignore)

ignore up to N cores

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-10-08

---

Document: nproc(1) from uutils 0.12.0-r2 (Chainguard OS)
Source: https://github.com/uutils/coreutils
