Kristian Lunde

www.klunde.net

yes

without comments

Ever tried to replace a bunch of files with cp -rf some/destination . in linux?

Then you might have had to do a number ‘y’ to confirm the replacement of the already existing files, pretty annoying. Well linux has this marvelous little tool called yes, which automate this process and adds a y after the prompt when replacing a file.

if you just try to type yes in your console you will see that it starts printing ‘y’.

so this is how you actually do it:

yes cp -r some/directory/* .

For more information type man yes in your concole.

Written by Kristian Lunde

April 18th, 2008 at 3:10 pm

Posted in Linux

Tagged with

Leave a Reply