Results 1 to 3 of 3
What's the deal with this bloody command
I trying to do an update of a product.
The -f is suppose to "force" the overwrite of existing files isn't it?
Well ...
- 03-20-2011 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 7
cp command -f is not HAPPENING
What's the deal with this bloody command
I trying to do an update of a product.
The -f is suppose to "force" the overwrite of existing files isn't it?
Well every time I run the command it keeps asking me to allow it to overwrite the files.. the programs is too long for me to sit here hitting the "y" and "enter key"
there has got to be a better way
please respond
thank you
- 03-21-2011 #2
I've heard that often the cp command on some distributions will be an alias set to 'cp -i' which is interactive mode. Apparently this sometimes can screw up the command, even when your forcing it. Try referencing the command by it's full path to avoid this.
Please mind that the above command is recursive.Code:/bin/cp -rf source destination
Just an idea. I hope it helps. If it does, you may wish to remove the alias. Check out your .bashrc and delete it.
- 03-21-2011 #3Just Joined!
- Join Date
- Sep 2010
- Posts
- 7
I ended up using the "mv" command. What a bummer the "cp" command is
I will keep this in mind thanks


Reply With Quote