What Does Yes Command Do in Linux?
Contents

yes is a command on Unix and Unix-like operating systems, which outputs an affirmative response, or a user-defined string of text, continuously until killed.

How do you use Yes command?

Simply type yes , a space, the string you wish to use, and then press Enter. This is often used to cause yes to generate an output stream of “yes” or “no” strings.

What is yes used for?

1 —used to express agreement in answer to a question, request, or offer or with an earlier statement “Are you ready?” “Yes, I am.”Yes, I think you are right. 2 —used to introduce a phrase with greater emphasis or clearness We are glad, yes, very glad to see you!

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest