shell

Being repetitive

yes confirms forever by showing y continuously. If followed by a parameter, it repeats the parameter.

$ yes
y
y
y
y
y
^C
$

It is useful when you are sure what you are doing. For instance, if you want to delete a set of write protected files:

$ yes | rm file_proctected*.txt

Enjoy!

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*Required Fields