I'm looking for the linux equivalent of the DOS command:
xcopy from/* to/* /s/e/d/y
Which copies over all new files and only replaces old ones. I'll be running this from the terminal of a Mac OSX computer.
I normally use find for this:
find * -print0 | cpio -pdmv0 to/
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
Basically cp -f from/* to/. But I don't know the meaning of all the options to your DOS command; maybe you have to choose additional options here, man cp.
cp -f from/* to/
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago