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