tldr/pages/osx/ditto.md
Balázs Úr 6956cd5348 multiple pages: change Unicode characters to ASCII (#2802)
Change Unicode characters to ASCII:

- non-breaking spaces (\xc2\xa0) to normal spaces (\x20)
- apostrophes (there are only 2 Unicode apostrophes, all others are already ASCII)
- hyphen (−) to minus (-)
- fix wording (STD‐OUT to "standard output")
2019-02-24 23:56:24 +00:00

16 lines
443 B
Markdown

# ditto
> Copy files and directories.
- 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}}`