how to check how many cpu in linux server code example Example: linux check cpu core lscpu #or cat /proc/cpuinfo