Everywhere I read the following description.
-i, --interactive :::::::Before overwriting an existing file, prompt the user for confirmation. If this option is not specified, cp will silently overwrite files.
but I am not able to understand why the term overwriting is used here. If I am copying a directory to another directory, then what is overwriting here?
Somebody please explain me the use of cp -i with an example.
cp
a file to somewhere new, or where it already exists... – guiverc May 06 '18 at 05:14