Find out the number of CPU cores on Linux
Posted on In QAHow to find out the number of CPU cores on a Linux host.
Use the command nproc
.
$ nproc
nproc – print the number of processing units available: man page of nproc.
Tutorials and news on Linux, systems, programming and more.
How to find out the number of CPU cores on a Linux host.
Use the command nproc
.
$ nproc
nproc – print the number of processing units available: man page of nproc.