Mainly dedicated to IT, Parallel Processing, Cloud and Grid Computing
Use the following command:
cat /proc/cpuinfo | grep processor | wc –l
It is convenient to put it in a script which I will call, for example, ncores:
#!/bin/sh cat /proc/cpuinfo | grep processor | wc –l
See enclosed screen shot:
Post a Comment
No comments:
Post a Comment