First page Back Continue Last page Overview Graphics
The yes command
Useful to fill standard input with always the same string.
yes <string> | <command>
Keeps filling the standard input of <command> with <string> (y by default).
Examples
yes | rm -r dir/
bank> yes no | credit_applicant
yes "" | make oldconfig
(equivalent to hitting [Enter] to accept all default settings)