files directoryditto [
Copies files and directories while preserving most file information, including resource fork and HFS metadata information when desired. ditto preserves the permissions, ownership, and timestamp of the source files in the copies. ditto overwrites identically named files in the target directory without prompting for confirmation.
ditto works like cp in the first synopsis form. However, the second form differs in that cp -r copies the entire
directory1 into an existing
directory2, while ditto copies the contents of
directory2 if it doesn't already exist.
When copying fat binary files, copy only the code for chip type
arch. Fat binary files contain different code for different chip architectures. The -arch flag allows you to "thin" the binary by copying only the code for the specified chip. Possible values for
arch include ppc, m68k, i386, hppa, and sparc.
When copying a directory, include in the copy only those items listed in BOM file
pathname. See also
for information on making a BOM file.
Create a CPIO archive at
Preserve POSIX extended attributes. This is on by default.
Specify that archives are in PKZip format.
directory1's parent directory in
Do not use Mac OS X Unified Buffer Cache for copying.
Do not preserve POSIX extended attributes. ...