Oh yes!

Ever come across a situation where you need to do this (very quickly):

rm -rf *

And you get this (with the -i flag):

rm: remove regular file 'PRON_0001.jpg'?

Sh*t! I have to hit 'y' to every single file? Well, you can use the yes command.

The yes command generates an infinite loop of 'y'. So, your problem solved:

yes | rm -rf *

Of course the above example uses the rm command, which can be solved with the -f flag but you can use it for any other commands that doesn’t offer such an option.