The yes command: “Aye, sir!”

The dumbest “yes-man” Linux command: yes!

It has only one aim: to indefinitely repeat what you tell it. Useful if pipelined with interactive cmd line installers (where you usually have to type “y” a lot of times in order to accept the default values) and similar borying operations.

So, for example if you go with:

yes test

it keeps on printing the cmd line arguments followed by a new line character (CTRL+C to stop execution):

test
test
test
[...]

…and if you do not specify any argument, it just says:

y
y
y
y
[...]

Yes, man! 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s