get number of cpus commandline code example Example: linux check cpu core lscpu #or cat /proc/cpuinfo