2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/ditto

12 lines
408 B
Plaintext
Raw Normal View History

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 thats 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