Javatpoint Logo
Javatpoint Logo

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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA