One of the weirdest utility that you can find in Linux systems is the one called “the yes command“. It prints a continuous output stream of a given string, if the string is not provided, keeps printing the word “yes” in an infinite loop (you can type crt+c tot stop). So what is used for?
You can use it to provide a yes response to a command like this:
yes | sudo apt upgrade
Or you can create a dummy file, like this:
yes "string to repeat" | head -n 1000 > file.txt
As always check the man documentation for more info.