The yes
command in linux is used to print a continuous output stream of given STRING. If STRING is not mentioned then it prints ‘y’. It outputs a string repeatedly unit killed (using something like ctrl + c).
- Prints hello world infinitely in the terminal until killed :
yes hello world
- A more generalized command:
yes [STRING]
It accepts the following options:
- --help
display this help and exit
- --version
output version information and exit