All apps/cp

cp

cp

Copy files and directories.

Runs as cp|macOS, Linux, Windows

Autocomplete

Fig spec, with what the manifest adds · 11 options
Published once and never changed; check the digest before caching
sha256
d0254d5f7030f2b6e8e646e3bc78cde69d1910c9decc10c6c7721fd18c73c4ff
Size
2420 bytes
OptionsOn cp itself
-a
Preserves structure and attributes of files but not directory structure
-f
If the destination file cannot be opened, remove it and create a new file, without prompting for confirmation
-H
If the -R option is specified, symbolic links on the command line are followed
-i
Cause cp to write a prompt to the standard error output before copying a file that would overwrite an existing file
-L
If the -R option is specified, all symbolic links are followed
-n
Do not overwrite an existing file
-P
If the -R option is specified, no symbolic links are followed
-R
If source designates a directory, cp copies the directory and the entire subtree connected at that point. If source ends in a /, the contents of the directory are copied rather than the directory itself
-v
Cause cp to be verbose, showing files as they are copied
-X
Do not copy Extended Attributes (EAs) or resource forks
-c
Copy files using clonefile
ArgumentsPositional, in order
<source>
· repeatable · filepaths
<target>
· filepaths