Print the specified string repeatedly
yes command outputs the specified string on the command line until the yes process is killed. If you enter the yes command without any parameters, the default string is y.
yes (parameter)
String: Specify the string to be printed repeatedly.
[root@localhost ~]# yes testline
testline
testline
testline
testline
testline
testline
testline
testline
...Print testline repeatedly and press Ctrl+C to end.