how to check cpu and ram in centos code example Example: How many CPUs and memory do you allocate to your Linux machine? cat /proc/cpuinfo