how many cores does my cpu have linux code example Example: linux check cpu core lscpu #or cat /proc/cpuinfo