info > nproc

nproc — Print the number of available processors

📖 NAME

nproc — Print the number of available processors

🚀 Quick Reference

Use Case Command Description
Print the number of available processors nproc Prints the number of processing units available to the current process, considering environment variables like OMP_NUM_THREADS and OMP_THREAD_LIMIT.
Print the total number of installed processors nproc --all Prints the number of installed processors on the system, ignoring environment variables.
Exclude a number of processors nproc --ignore=N Excludes N processing units from the count.

📝 Synopsis

nproc [OPTION]

📋 Description

Print the number of processing units available to the current process, which may be less than the number of online processors. If this information is not accessible, then print the number of processors installed. If the OMP_NUM_THREADS or OMP_THREAD_LIMIT environment variables are set, then they will determine the minimum and maximum returned value respectively. The result is guaranteed to be greater than zero.

⚙️ Options

Also see Common options.

🚪 Exit Codes

nproc
nproc — Print the number of available processors 📖 NAME 🚀 Quick Reference 📝 Synopsis 📋 Description ⚙️ Options 🚪 Exit Codes

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-16 07:41 @216.73.217.24
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!