Roberto Sanchez wrote:

--- alex <[EMAIL PROTECTED]> escribió:

I've been trying to copy the contents of a partition (source) to another partition (destination) that has a large number
of files that need to be overwritten. The command I've tried is:


# cp -apRv source/* /destination/

The command works but it requires that I manually respond 'yes' for each overwrite. I thought that the r or R option
would do an automatic overwrite but apparently it doesn't.


What should the option be to do automatic overwrites with the ' cp ' command?




add --reply=yes (it's in the man page).


-Roberto

___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es




Beautiful! It works very nicely. I used cp -apfv --reply=y source/* destination.

I wasn't aware that there was such a command in man.

The story is I installed a new hard drive for a friend and installed Windows 98 and used the old hard drive
Win98 as a source and copied the entire old Win98 partition to the new Win98 partition. I installed KNOPPIX in
the new drive and used it to do the copy. My friend now is now becoming a Debian fan..


Thank you Roberto
has  KNOPPIX  in his new hard drive




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to