nproc
systemLinux/Unix
The nproc command is one of the most frequently used commands in Linux/Unix-like operating systems. nproc Print the number of processing units available
Quick Reference
Command Name:
nproc
Category:
system
Platform:
Linux/Unix
Basic Usage:
nproc [options] [arguments]
Common Use Cases
Syntax
nproc [OPTION]
Options
Option | Description |
---|---|
--all |
Print the number of installed processors |
--ignore=N |
If possible, exclude N processing units |
--help |
Display help information and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the nproc
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
nproc