I want to copy a certain file to a location, irrespective of that file already exists in the destination or not. I'm trying to copy through shell script.But the file is not getting copied. I'm using the following command
/bin/cp -rf /source/file /destination
but that doesn't work.
cpoverrides the destination unless option-nis given, so your command should succeed. Also you didn't tell us why you think your command fails.