the purpose of this short tutorial is to show you how you can stop a loop in linux.

there are times when a loop will keep on going till infinity. which means, it will never stop and your script will be compromise. so sometimes, as programmers we must take steps that our programs dont crash. one way to stop a loop from going on to infinity is to use break.

so when you are creating your script, be sure to add a condition that if the loop goes on forever, you can use "break" to stop the loop