How Do You Exit an Infinite Loop in Linux?
Contents You Can Also Use the True Built-in or Any Other Statement That Always Returns True. the While Loop Above Will Run Indefinitely. You Can Terminate the...
Contents
You can also use the true built-in or any other statement that always returns true. The while loop above will run indefinitely. You can terminate the loop by pressing CTRL+C .
How do you exit an infinite loop?
To stop, you have to break the endless loop, which can be done by pressing Ctrl+C.
Must Read
What is the shortcut key to terminate infinite loop?
You can press Ctrl + C .