View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > Yes

From LQWiki

Jump to: navigation, search

yes is a command that just outputs a string repeatedly. The default string is "y" if no other string is given as the command argument.

It can be useful in scripts to run interactive commands. For example:

   $ yes | rm -i /tmp

This will run the rm -i and send 'y' to all the questions (yes it's a silly example)


Personal tools