Forrest logo
back to the nproc tool

nproc:tldr:7126e

nproc: Display the number of installed processing units, including any inactive ones.
$ nproc --all
try on your machine

The command "nproc --all" is used to display the total number of processing units (or CPU cores) available on a system.

Here is a breakdown of the command:

  • "nproc" is a command-line utility in Linux/Unix systems that is used to query and print the number of processing units available to the current process.
  • "--all" is an option for the "nproc" command. It tells the command to display the total number of processing units available on the system, including both physical and logical cores.

When you run the command "nproc --all" in the terminal, it will output a single number that represents the total number of processing units on your system. This information can be useful in various scenarios, such as determining the maximum level of parallelism for certain tasks or optimizing resource allocation.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nproc tool