ubuntu 16.04 check cpu usage code example Example: linux check cpu usage lscpu # Or cat /proc/cpuinfo