2017-06-04 20:47:08 +00:00
|
|
|
|
# ditto
|
|
|
|
|
# Copy files and folders (Mac OS X)
|
2017-06-04 14:35:24 +00:00
|
|
|
|
|
2017-06-04 20:47:08 +00:00
|
|
|
|
# Overwrite contents of destination folder with contents of source folder:
|
|
|
|
|
ditto path/to/source path/to/destination
|
2017-06-04 14:35:24 +00:00
|
|
|
|
|
2017-06-04 20:47:08 +00:00
|
|
|
|
# Print a line to the Terminal window for every file that’s being copied:
|
|
|
|
|
ditto -V path/to/source path/to/destination
|
2017-06-04 14:35:24 +00:00
|
|
|
|
|
2017-06-04 20:47:08 +00:00
|
|
|
|
# Copy a given file or folder, while retaining the original file permissions:
|
|
|
|
|
ditto -rsrc path/to/source path/to/destination
|