2015-12-31 00:50:05 +00:00
|
|
|
# ditto
|
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
> Copy files and directories.
|
2021-08-23 20:33:24 +01:00
|
|
|
> More information: <https://ss64.com/osx/ditto.html>.
|
2015-12-31 00:50:05 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Overwrite contents of destination directory with contents of source directory:
|
2015-12-31 00:50:05 +00:00
|
|
|
|
2023-02-20 07:05:58 +00:00
|
|
|
`ditto {{path/to/source_directory}} {{path/to/destination_directory}}`
|
2015-12-31 00:50:05 +00:00
|
|
|
|
2019-02-24 23:56:24 +00:00
|
|
|
- Print a line to the Terminal window for every file that's being copied:
|
2015-12-31 00:50:05 +00:00
|
|
|
|
2023-02-20 07:05:58 +00:00
|
|
|
`ditto -V {{path/to/source_directory}} {{path/to/destination_directory}}`
|
2015-12-31 00:50:05 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Copy a given file or directory, while retaining the original file permissions:
|
2015-12-31 00:50:05 +00:00
|
|
|
|
2023-02-20 07:05:58 +00:00
|
|
|
`ditto -rsrc {{path/to/source_directory}} {{path/to/destination_directory}}`
|