2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-17 09:25:32 +00:00
cheat.sheets/sheets/ditto
Igor Chubin 25a2b19a66 ditto
2017-06-04 20:47:08 +00:00

12 lines
408 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ditto
# Copy files and folders (Mac OS X)
# Overwrite contents of destination folder with contents of source folder:
ditto path/to/source path/to/destination
# Print a line to the Terminal window for every file thats being copied:
ditto -V path/to/source path/to/destination
# Copy a given file or folder, while retaining the original file permissions:
ditto -rsrc path/to/source path/to/destination