How do you stop an infinite loop in Linux?

How do you stop an infinite loop in Linux?
Answer
Infinite while Loop
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 .
 

Tìm kiếm

Back
Top