Linux CPU stress testing from CLI

Just run this for quad cores

for i in 1 2 3 4; do while : ; do : ; done &  done

It will display the process ID’s that you need to kill in order not to burn your CPU. 🙂