How do I stop an infinite loop in terminal?

How do I stop an infinite loop in terminal?
Answer
Control-C (holding the Ctrl key while typing ‘c’)
should do the trick. Unless your program has code to respond to such an interrupt, the error will cause the program to end.
 

Tìm kiếm

Back
Top