---

How to loop forever in bash on Linux

Looping forever on the command line or in a bash script is easy. Coming up with the reasons why you want to interrupt an infinite loop and how you want to do that requires a little more effort.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis