Run the `yes` command by itself. What does it do?
Hint 1: Try executing `yes` with no arguments.
Hint 2: Be prepared to stop it with Ctrl+C; it will flood output.
Solution:
The `yes` command will print “y” (or any string you provide) endlessly to the terminal. It continues outputting “y” over and over until you stop it (commonly used to automatically answer prompts).
Leave a Reply