check resource usage linux code example Example 1: linux check cpu usage lscpu # Or cat /proc/cpuinfo Example 2: check vm ram details in linux sudo dmidecode -t 17