On my Linux 4.15 machine I found the
yes command that appears completely useless - it outputs a string passed as argument (default:
'y') repeatedly untill killed. And... that's it.
name@machine:~$ yes y y [...] y y ^C
I have trouble figuring out a possible use case for this, especially given that a simple
while true; do echo y; done has similar behavior and is more readable (but I can't find any case for it either).
What can this command be used for? Where does it comes from? Neither the man page nor the full doc answer these questions!