The Linux Yes Command

I do not find the Linux yes command useless. Combined in a piped command can be usefull.

Watch Free Movies

$ yes

It can be used for tasks that need confirmation:

$ yes | sudo apt-get install skype
Do you want to continue [Y/n]? WARNING: The following packages cannot be authenticated!

So, my installation continues without waiting for my yes.

Scroll to Top