Home » Linux cp -i command

Linux cp -i command

by Online Tutorials Library

Linux cp -i

The cp ‘-i’ option allows you to confirm once before overwriting your file.

Syntax:

Example:

Linux cp -i

As you can see, it is asking for permission to over write the file ‘file3.txt’ as this file already exists in the destination directory. Now, you can press y to overwrite file and n not to overwrite file.

Next TopicLinux cp -l

You may also like