CP(1)

NAME
cp - copy files and directories

SYNOPSIS
cp [-afpv] [ -R [-H | -L | -P]] source ... dest

DESCRIPTION
cp copies source to dest. If more than one source is given dest has to be a directory.

OPTIONS

-a  Preserve block devices, character devices, sockets and FIFOs. Implies -p, -P and -R.

-f  If an existing dest cannot be opened, remove it and try again.

-p  Preserve mode, timestamp and permissions.

-v  Write "'source' -> 'dest'" for each source to stdout.

-H  Dereference source if it is a symbolic link.

-L  Dereference all symbolic links. This is the default without -R.

-P  Preserve symbolic links. This is the default with -R.

-R  Traverse directories recursively. If this flag is not specified, directories are not copied.

SEE ALSO
mv(1)

STANDARDS
The cp utility is compliant with the p1003.1-2013 specification except from the [-i] flag.

The [-av] flags are an extension to that specification.