Javatpoint Logo
Javatpoint Logo

Linux cp -u -v

The cp -u -v command is used when you want to make sure that destination file is missing or doesn't exist.



Linux cp -u -v

In the above picture, you can see that there are two files 'docc' and 'file1.txt'. Now we want to copy these two files in the 'Download' directory. But we don't know that in the 'Downloads' directory file 'file1.txt' already exists.

Giving the command 'cp -u -v' will automatically take care of the already existing file (file1.txt) and will not over write it.

This command is useful in copying big files.

Next TopicLinux mv command

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA