yes - output a string repeatedly until killed

Yes command without any options
$ yes

To repeatedly generate any message 
$ yes This is linux

To install packages without having to press “y” using pipe
$ yes | apt install <package_name>
$ yes | yes | yum install <package_name>

To make yes command outputs "yes" in a constant stream to the rm -i command
$ yes | rm -i *.txt

To make yes command outputs "n" in a constant stream to the rm -i command
$ yes n | rm -i *.txt



regards,
T.Dhanasekar