check number cpu cores linux who is used code example Example: linux check cpu core lscpu #or cat /proc/cpuinfo