1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 18:44:56 +02:00
tldr/pages/osx/ditto.md
2016-01-16 15:12:05 +01:00

15 lines
432 B
Markdown

# ditto
> Copy files and folders.
- 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 that’s 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}}`