I issued a command in the Ubuntu terminal that required me to type yes but I discovered that it only asks me the first time, but I had already pressed enter before I realized. So I expected a "command not found" message but instead I got a never-ending stream of "y"s. This seems to be the only thing this does, so I'm wondering what the point of this command is and why it outputs "y"s? (Ubuntu 11.10)
|
From wikipedia:
|
|||
|
|
|
A long time ago (SySV days and earlier), the |
|||
|
|
|
Based on the information provided here: http://linux.about.com/library/cmd/blcmdl1_yes.htm
In my humble opinion, the usage of a "yes" command sounds logic when you have to repeatedly authorize something in a process/script by pressing the "y" key. Which can be controlled by cancelling the program execution. Anyway, somebody else may have experience using this command. |
|||||
|
|
The yes command will either print its argument, or "y" if that is empty, until you end the program or its output pipe is closed. It can be used with programs that expect some repeated input, like rm -i. |
|||||
|