From 0fdd370a27f4c557428b8a7ba71694061f5af786 Mon Sep 17 00:00:00 2001 From: webb04 Date: Thu, 31 Dec 2015 00:50:05 +0000 Subject: [PATCH] ditto: add page --- pages/osx/ditto.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/osx/ditto.md diff --git a/pages/osx/ditto.md b/pages/osx/ditto.md new file mode 100644 index 000000000..ff0bf86c4 --- /dev/null +++ b/pages/osx/ditto.md @@ -0,0 +1,15 @@ +# ditto + +> Copy files and folders + +- Overwrites contents of destination folder with contents of source folder + +`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 folder, while retaining the original file permissions. + +`ditto -rsrc {{path/to/source}} {{path/to/destination}}`