yes
Output a string repeatedly until killed — useful for piping automatic confirmations.
Synopsis
yes [STRING]
Examples
yes | head -5
yes 'hello' | head -3
yes | rm -i *.tmp
About yes
The `yes` command output a string repeatedly until killed — useful for piping automatic confirmations. Text processing commands transform, format, and generate text output.
Linux's philosophy of small composable tools shines here — these commands are designed to be piped together to build complex text-processing workflows. They are indispensable for scripting, log analysis, and data transformation tasks.
The command accepts 0 commonly used flags shown above, though the full set of options is available in the man page (`man yes`). The 3 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.
Related commands
More Text Processing Commands
Other commands in the Text Processing category