Files
tldr/pages/osx/ditto.md
Marco Bonelli 2599a6de48 Refactor: change "folder" to "directory" where needed.
This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
2019-02-13 20:51:04 +05:30

445 B
Raw Blame History

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 thats 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}}