Manual / cp
cp(1)
| CP(1) | General Commands Manual | CP(1) |
NAME
cp - copy files and directory trees
SYNOPSIS
cp [-iprR] source ... destination
DESCRIPTION
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.
- -i
- Prompt before replacing an existing file; only y or Y proceeds.
- -p
- Preserve ProDOS access, file type, auxiliary type, creation date and modification date.
- -r, -R
- 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.
FILES
/usr/man/CP this page
SEE ALSO
DIAGNOSTICS
Exit status is 0 for successful or declined copies, 1 for file/copy failures, 2 for usage errors.
BUGS
Replacement and recursive copying are not transactional. Keep a backup when replacing important data.
| September 19, 2026 | maux |