1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 21:42:08 +02:00
tldr/pages/osx/ditto.md

16 lines
498 B
Markdown

# ditto
> Copy files and directories.
> More information: <https://ss64.com/osx/ditto.html>.
- Overwrite contents of destination directory with contents of source directory:
`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 directory, while retaining the original file permissions:
`ditto -rsrc {{path/to/source}} {{path/to/destination}}`