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
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
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
-n
("no-clobber") after the -r, to not overwrite existing files: cp -rn /path-to-first-pepe-dire/* /path-to-second-pepe-dir
– Mark Williams
May 22 '15 at 08:33