copy without overwrite prompt
Hi,
I was trying to copy a folder of size morethan 20 GB, but somehow system got stuck and i rebooted the system. now when i'm again trying to copy the same folder, it is giving overwrite prompt, for every file, even when i used '-f' . The command which i'm using is: cp -fr 2008/AUG/ 2008/ Please help me |
cd 2008/AUG; tar -cvf - . | ( cd /path/to/new/2008 ; tar -xvpf - )
|
Thanks Mr C for ur kind reply.
I used "unalias cp" command whcih i got from previous post. that too worked fine. thank u LQ |
If you want to avoid an alias, use backslash for a one shot:
$ \cp src dest |
Or just
Code:
yes | cp <whatever else> |
Most linux are coming with an alias for cp to cp -i
So use absolute path (/bin/cp) for copy without prompt. syntax: /bin/cp source destination This will work. Thanks Nikesh |
Thank nikeshp, It cool!
|
All times are GMT -5. The time now is 03:02 AM. |