Linux Cp


How can we avoid the annoying confirmation?

By default, when we use cp to copy file, it does not ask you to confirm if we want to overwrite the destination file. However, as a safety precaution, most modern Linux system alias cp to 'cp -i' for the root user. If this annoy us, we can work around this by prefixing the cp command with a backslash. For example:

\cp folderName/* destinationFolder
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License