The Nerdy Sixty | (09/60) Endless Yes | Solution

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).

 

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Cookie Notice by Real Cookie Banner