how to check number of cpus and ram in linux code example Example: linux check cpu core lscpu #or cat /proc/cpuinfo