maux
Star on GitHub Buy me a coffee

Manual / cp

cp(1)

CP(1) General Commands Manual CP(1)

cp - copy files and directory trees

cp [-iprR] source ... destination

The source file is opened for reading and copied into the destination. Unlike V1's pairs of operands, maux accepts source ... destination: with several sources, the destination must be a directory. If the destination is a directory, each file is copied under its own name. An existing destination file is replaced, not appended to.

Prompt before replacing an existing file; only y or Y proceeds.
Preserve ProDOS access, file type, auxiliary type, creation date and modification date.
Copy directory trees recursively, merging into an existing destination directory where necessary.

Without -r or -R, a directory source is refused. Errors are reported and remaining source operands are attempted.

/usr/man/CP this page

mv(1), cat(1), chmod(1), licenses(1)

Exit status is 0 for successful or declined copies, 1 for file/copy failures, 2 for usage errors.

Replacement and recursive copying are not transactional. Keep a backup when replacing important data.

September 19, 2026 maux