If cp
still ask you permission to overwrite every single file, then it means that there is an alias cp -i
in your system.
To bypass the overwrite question for every file, you can either:
- Temporarily disable alias by prefixing a backslash:
\cp XYZ
. - or
- Feed
yes
tocp
through pipe:yes | cp XYZ
.