Syntax: of `yes` command in Linux

yes [STRING]

Note: To stop printing please press Ctrl + C.

yes command in Linux with Examples

yes, the command in Linux is used to print a continuous output stream of a given STRING. If STRING is not mentioned then it prints ‘y’;

Similar Reads

Syntax: of `yes` command in Linux

yes [STRING]...

Use of `yes` command

let us say that we want to delete all the `.txt` files present in the current directory. Instead of writing `rm -i *.txt` and then typing y at the end for every file, what can be we can use `yes | rm -i *.txt`....