yes

Print the specified string repeatedly

Supplementary instructions

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.

grammar

yes (parameter)

Parameters

String: Specify the string to be printed repeatedly.

Example

[root@localhost ~]# yes testline

testline
testline
testline
testline
testline
testline
testline
testline
...Print testline repeatedly and press Ctrl+C to end.