check number of cpu cores of a linux machine code example Example: linux check cpu core lscpu #or cat /proc/cpuinfo