To stop an infinite loop, kill the process using the ‘kill PID’ command.

Example – $ kill -9 24566

BY Best Interview Question ON 11 Apr 2019