cp command

Kanwar Ranbir Sandhu m3freak at rogers.com
Tue Jul 18 05:35:39 UTC 2006


On Tue, 2006-18-07 at 10:59 +0530, Kaushal Shriyan wrote:
> if i will run following command
> 
> cp /home/deep /home/deepak
> 
> if deep folder have same 100 files which is under /home/deepak it will
> ask permission for overwrite
> 
> i have to enter y 100 times. how can i forcefully over write the files?

You could use rsync instead.  But, if you're sticking with cp:

cp --reply=yes /home/deep /home/deepak

"man cp " is your friend.  Ask him/her/it.

HTH,

Ranbir

-- 
Kanwar Ranbir Sandhu
Linux 2.6.17-1.2141_FC4 i686 GNU/Linux 
01:34:07 up 2 days, 15:13, 3 users, load average: 0.33, 0.16, 0.06 





More information about the users mailing list