yes command in Linux with Examples
yes command in linux is used to print a continous output stream of given STRING. If STRING is not mentioned then it prints ‘y’;
Syntax:
yes [STRING]

Note: To stop printing please press Ctrl + C.
Question: Where it is used ?
Ans: Lets say that we want to delete all the .txt file present in the current directory. Insted of writting rm -i *.txt and then typing y at the end for every file, what we can do is we can use yes | rm -i *.txt.

Options:
- yes –help : It displays help information.
- yes –version : It displays version infromation.
Recommended Posts:
- bg command in Linux with Examples
- until command in Linux with Examples
- bc command in Linux with examples
- apt-get command in Linux with Examples
- scp command in Linux with Examples
- tar command in Linux with examples
- man command in Linux with Examples
- rcp Command in Linux with examples
- tty command in Linux with examples
- gcc command in Linux with examples
- seq command in Linux with Examples
- last command in Linux with Examples
- id command in Linux with examples
- let command in Linux with Examples
- fc Command in Linux with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



