bash return number of processors code example Example: linux check cpu core lscpu #or cat /proc/cpuinfo