The other day I ran into a problem using the cp (copy) command in Linux with the force (-f) option. This won’t be the longest post I’ve written, but still a good tip if you run into this!
I expected this to work:
cp -f filename filenamedestination
However, the “f” option doesn’t always work. This is because it is aliased. This is where the quicktip comes in; instead try the following:
/bin/cp -f filename filenamedestination
By not using the alias you should be able to use the -f –force option.