Thursday, 8 March 2018

How to print Number of Processing Units - nproc



The nproc command just prints out the number of processing units available. Note that the number of processing units might not always be the same as number of cores.

[root@linuxcnf ~]# nproc
2
[root@linuxcnf ~]#


In the above output we can see there is 2 cores available on the server.

No comments:

Post a comment