# info > nproc

---
type: CommandReference
command: nproc
mode: info
section: ""
source: info
---

## Quick Reference

- `nproc` — print number of available processors
- `nproc --all` — print number of installed processors
- `nproc --ignore=2` — exclude 2 processors from count

## Name

Print the number of available processors

## Synopsis

`nproc [OPTION]`

Print the number of processing units available to the current process. The `OMP_NUM_THREADS` and `OMP_THREAD_LIMIT` environment variables influence the minimum and maximum returned value, respectively. The result is guaranteed to be greater than zero.

## Options

- `--all` — Print the number of installed processors on the system, which may be greater than the number online or available to the current process. The `OMP_NUM_THREADS` or `OMP_THREAD_LIMIT` environment variables are not honored in this case.
- `--ignore=NUMBER` — If possible, exclude this NUMBER of processing units.

## Exit Codes

- 0 — success
- nonzero — failure