Using the command
yes you can make a loop in the Linux terminal.
How do you exit out of said loop?
(I tried Ctrl+C but it didn't work).
stty -a should give you a list of key shortcuts for your terminal. In particular, you should see a line that looks something like this:
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; ...
Presumably, you will not have ^C listed next to
intr =. Try whatever combo is there instead; if that doesn't work, you can try your
kill combos as well -- here,
Ctrl + \ and
Ctrl + U, respectively.