2015-12-31 03:50:05 +03:00
|
|
|
# ditto
|
|
|
|
|
2019-02-11 21:00:49 +03:00
|
|
|
> Copy files and directories.
|
2015-12-31 03:50:05 +03:00
|
|
|
|
2019-02-11 21:00:49 +03:00
|
|
|
- Overwrite contents of destination directory with contents of source directory:
|
2015-12-31 03:50:05 +03:00
|
|
|
|
|
|
|
`ditto {{path/to/source}} {{path/to/destination}}`
|
|
|
|
|
2019-02-25 02:56:24 +03:00
|
|
|
- Print a line to the Terminal window for every file that's being copied:
|
2015-12-31 03:50:05 +03:00
|
|
|
|
|
|
|
`ditto -V {{path/to/source}} {{path/to/destination}}`
|
|
|
|
|
2019-02-11 21:00:49 +03:00
|
|
|
- Copy a given file or directory, while retaining the original file permissions:
|
2015-12-31 03:50:05 +03:00
|
|
|
|
|
|
|
`ditto -rsrc {{path/to/source}} {{path/to/destination}}`
|