Here is the command how to be able to copy a fil or directory and replace the destination if already existing.
i’m using “Bash”
1 |
cp -fR /source/src_directory /destination/dest_directory |
1 |
e.g: cp -fR /home/test1/* /home/test2/ |
Well, thanks for sharing the command. Now I know to copy a fil or directory and replace the destination if already existing.