The Linux Yes Command

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

$ yes
y
y
y^C

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.

Tagged with: , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

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

*

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!