Re:A little story about the `yes` Unix command
by js2 on Thursday July 21, 2022 @12:03PM
(#32181021)
I recall in college we'd `xhost +` and then start running things remotely on their desktop, playing sounds, etc, but it's been a very long time. Switching the keyboard layout to Dvorak is another fun one.
Once we found one logged in and decided to add 'yes' as the last line of his bash login.
That day we learned, via an angry phone call, that you can't Ctrl^C out of 'yes' via a remote shell. Today after reading this I'm assuming it's because of the way it floods the buffer.
Poor guy had to call the one dude with root access to fix it for him.