Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.66 KB

ditto.md

File metadata and controls

34 lines (27 loc) · 1.66 KB
layout title description content_hash last_modified_at related_topics tldri18n_status
page
osx/ditto (English)
Copy files and directories.
86522358d8dfda4ccd40013f677e58a4e70090fd
2024-01-31
title url icon
বাংলা version
/bn/osx/ditto.html
bi bi-globe
title url icon
português (Brasil) version
/pt_BR/osx/ditto.html
bi bi-globe
title url icon
中文 version
/zh/osx/ditto.html
bi bi-globe
2

ditto

Copy files and directories. More information: https://keith.github.io/xcode-man-pages/ditto.1.html.

  • Overwrite contents of destination directory with contents of source directory:

ditto path/to/source_directory path/to/destination_directory

  • Print a line to the Terminal window for every file that's being copied:

ditto -V path/to/source_directory path/to/destination_directory

  • Copy a given file or directory, while retaining the original file permissions:

ditto -rsrc path/to/source_directory path/to/destination_directory