1

I have 2 folders with same name (pepe pepe). i want to copy the files of pepe to other one without lossing the files of destination .

how i can do it ?

copying new files from pepe folder to other folder pepe without lossing any file

thanks

1 Answers1

2

easily you can just use cp command:

cp -rn /path-to-first-pepe-dire/* /apth-to-second-pepe-dir

PS: I use -r in case you have directories inside so if you don't have you can get rid of

use -n to not overwrite an existing file

example:

first dir pepe in your home

second dir pepe in your desktop

then command would be

cp -rn ~/pepe/* ~/Desktop/pepe
Maythux
  • 84,289