check linux use cpu code example Example 1: check cpu temp linux watch -n 2 sensors Example 2: linux check cpu core lscpu #or cat /proc/cpuinfo