A friend installed ubuntu and I was messing with it whenever he looked away, however the results of one of my pranks really surprised me.
I knew it would do 'something' but I wasn't expecting it to be quite so bad. It appears 'yes' wont print anything until the second yes has returned, which means there are a lot of y's in memory. The load shown in top was 3.6, and got to 92.0% memory. Furthermore, neither ctrl+C/D, kill or pkill were able to stop it. In the end I used ctrl+alt+bspcCode:yes `yes`
Firstly, how should this have been stopped? Secondly, how could I prevent something like this happening?
I was taught at school that the school ran checks to ensure processes weren't growing to quickly in order to detect malicious software. Is there anything like this that is used in the real world?