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